Indexing quoted text in messages in conversations to support advanced conversation-based searching

ABSTRACT

A conversation server system having one or more processors and memory stores a plurality of index components in an index. The server receives a first message, associates the first message with a conversation having one or more other messages and identifies quoted text in the message based on text that occurs in one or more of the other messages. The server stores, in the index, a plurality of first-message index components including one or more index components that correspond to terms in original text of the first message and one or more index components that correspond to terms that occur in the quoted text, where the first-message index components for original text of the first message are distinguished from the first-message index components for quoted text of the first message in the index.

RELATED APPLICATIONS

This application claims priority to U.S. Provisional Patent ApplicationNo. 61/512,364, filed Jul. 27, 2011, entitled “Index Entries Configuredto Support Both Conversation and Message Based Searching,” whichapplication is incorporated by reference herein in its entirety.

This application is related to U.S. patent application Ser. No.10/914,035, filed on Aug. 6, 2004, entitled “Displaying Conversations ina Conversation-Based Email System,” which application is incorporated byreference herein in its entirety.

This application is related to U.S. patent application Ser. No.13/220,664, filed Aug. 29, 2011, entitled “Index Entries Configured toSupport Both Conversation and Message Based Searching,” whichapplication is incorporated by reference herein in its entirety.

This application is related to U.S. patent application Ser. No.13/220,668, filed Aug. 29, 2011, entitled “Enabling Search forConversations with Two Messages Each Having a Query Term,” whichapplication is incorporated by reference herein in its entirety.

This application is related to U.S. patent application Ser. No.13/220,671, filed Aug. 29, 2011, entitled “Conversation System andMethod for Performing both Conversation-Based Queries and Message-BasedQueries” which application is incorporated by reference herein in itsentirety.

FIELD OF THE INVENTION

The present invention relates generally to the field of computersystems, and in particular, to a system and method for managing a largenumber of electronic communications in an efficient and user-friendlymanner.

BACKGROUND OF THE INVENTION

Every day, people send and receive millions of email (also written as“e-mail”) messages over computer networks for business and leisure.Email, being convenient, easy to use and close to instantaneous in manycases, has become an extremely popular communication channel for peopleto exchange information.

Traditionally, email messages arriving at a user's email account aredisplayed by a dedicated email client or in web browser windowindividually, in a chronological order, e.g., the most recent messageappears at top of the browser window while the oldest one appears at thebottom of the browser window. However, it is common that multiplemessages sent by two or more people at different times may cover a sametopic. Viewing the messages together would assist the user inunderstanding the individual messages in the proper context.

Thus, in some conventional email messaging programs, email messages maybe organized into conversations. However, even where email messages areorganized into conversations, the messages are still searched asindividual entities rather than searching conversations as a whole. Thisis partially because conventional approaches to indexing typically donot simultaneously enable both message based and conversation basedsearching due to the prohibitive cost of maintaining data structuresenabling message based searching concurrently with data structuresenabling conversation based searching. As more users begin to usemessaging programs where emails are organized into conversations, thelack of full conversation-based searching for messaging systems becomesincreasingly problematic as users are unable to perform simpleconversation-based searches.

SUMMARY

Therefore, it would be advantageous to provide a system and method togenerate and maintain data structures enabling supportconversation-based searching. Moreover, users may switch betweenconversation-based searching and message-based searching and may desireto perform some searches that employ either conversation-based searchingor message-based searching or a combination of both withoutunnecessarily duplicating data structures such as indexes. These andother problems with conventional electronic communication systemsdescribed above are reduced or eliminated by the systems and methodsdescribed below.

In some embodiments, a method is performed at a server system having oneor more processors and memory storing one or more programs for executionby the one or more processors so as to perform the method. The methodincludes storing a plurality of index entries in an index, a respectiveindex entry corresponding to a respective term and having a plurality ofindex components, a respective index component of the respective indexentry identifying a message that is associated with the respective term.The method further includes receiving a first message, associating thefirst message with a conversation having at least one other message andstoring, in the index, a plurality of first-message index componentsthat each include an identifier of the first message. The first-messageindex components include one or more index components indicative of aplurality of message terms in the first message and one or more indexcomponents indicative of one or more conversation terms in theconversation, the one or more conversation terms comprising one or moreterms that are not in the first message.

In some embodiments, a method is performed at a server system having oneor more processors and memory storing one or more programs for executionby the one or more processors so as to perform the method. The methodincludes storing a plurality of index entries in an index, a respectiveindex entry corresponding to a respective term and having a plurality ofindex components, a respective index component of the respective indexentry identifying a message that is associated with the respective term.The method further includes receiving a first message, associating thefirst message with a conversation having one or more other messages,identifying text in the first message as quoted text based on text thatoccurs in one or more of the other messages associated with theconversation, and storing, in the index, a plurality of first-messageindex components that each include an identifier of the first message.The first-message index components include one or more index componentsthat correspond to terms that occur in original text of the firstmessage and one or more index components that correspond to terms in thefirst message that occur in the quoted text of the first message. In theindex, the first-message index components that correspond to terms thatoccur in original text of the first message are distinguished from thefirst-message index components that correspond to terms in the firstmessage that occur in the quoted text of the first message.

In some embodiments, a method is performed at a server system having oneor more processors and memory storing one or more programs for executionby the one or more processors so as to perform the method. The methodincludes storing a plurality of index entries in an index, a respectiveindex entry corresponding to a respective term and having a plurality ofindex components, a respective index component of the respective indexentry identifying a message that is associated with the respective term.The method further includes receiving a first message having a firstterm, associating the first message with a conversation that includes atleast a second message, where the first term is not included in thesecond message and the second message includes a second term that is notincluded in the first message and storing, in the index, a plurality ofindex components for a same respective referenced object, including anindex component indicative of the first term and an index componentindicative of the second term.

In some embodiments, a method is performed at a server system having oneor more processors and memory storing one or more programs for executionby the one or more processors so as to perform the method. The methodincludes storing a plurality of messages organized as a plurality ofconversations, each conversation including a respective representativemessage, and at least one of the conversations including multiplemessages. A respective representative message of a conversationincluding multiple messages is associated with one or more message termsand one or more conversation terms, the message terms comprising termsthat occur in the respective representative message, and theconversation terms comprising terms from the conversation that do notoccur in the respective representative message. The method furtherincludes receiving a message search query from a client and respondingto the message search query by identifying, in the plurality ofmessages, one or more matching messages that are associated with messageterms matching the message search query and returning message searchresults including representations of at least a subset of the matchingmessages for display at the client from which the message search querywas received. The method also includes receiving a conversation searchquery from a client and responding to the conversation search query byidentifying, in the plurality of messages, one or more matchingrepresentative messages that are associated with a combination ofmessage and conversation terms matching the conversation search query,the combination comprising one or more conversation terms associatedwith the representative message and zero or more message termsassociated with the representative message, selecting one or moreconversations including a matching representative message as matchingconversations and returning conversation search results includingrepresentations of at least a subset of the matching conversations fordisplay at the client from which the conversation search query wasreceived.

In accordance with some embodiments, a computer system (e.g., aconversation client system or conversation server system) includes oneor more processors, memory, and one or more programs; the one or moreprograms are stored in the memory and configured to be executed by theone or more processors and the one or more programs include instructionsfor performing the operations of the method described above. Inaccordance with some embodiments, a non-transitory computer readablestorage medium has stored therein instructions which when executed byone or more processors, cause a computer system (e.g., conversationclient system or conversation server system, etc.) to perform theoperations of the methods described above.

BRIEF DESCRIPTION OF THE DRAWINGS

For a better understanding of the disclosed embodiments, referenceshould be made to the Description of Embodiments below, in conjunctionwith the following drawings in which like reference numerals refer tocorresponding parts throughout the figures.

FIG. 1 is a block diagram illustrating a distributed client-serversystem, in accordance with some embodiments.

FIG. 2 is a block diagram illustrating a conversation client system, inaccordance with some embodiments.

FIG. 3 is a block diagram illustrating a conversation server system, inaccordance with some embodiments.

FIGS. 4A-4E are block diagrams illustrating data structures for storingdata associated with users, messages and conversations for use by aconversation server system, in accordance with some embodiments.

FIGS. 5A-5B are block diagrams illustrating a flow of data through datastructures of a conversation server system, in accordance with someembodiments.

FIGS. 6A-6C include a flow chart illustrating a method for receiving andstoring messages and receiving and responding to a queries at aconversation server system, in accordance with some embodiments.

FIGS. 7A-7G include a flow chart illustrating a method for generating anindex configured to support both conversation and message basedsearching, in accordance with some embodiments.

FIGS. 8A-8D include a flow chart illustrating a method for separatelyindexing quoted text in messages in conversations to support advancedconversation-based searching, in accordance with some embodiments.

FIGS. 9A-9D include a flow chart illustrating a method for enablingsearch for conversations with two messages each having a respectivequery term from a search query, in accordance with some embodiments.

FIGS. 10A-10E include a flow chart illustrating a method for performingboth conversation based queries and message based queries, in accordancewith some embodiments.

FIGS. 11A-11F are representations of exemplary user interfaces forinteracting with conversations stored at the conversation server system,in accordance with some embodiments.

FIGS. 12A-12B are representations of exemplary user interfaces forinteracting with messages stored at the conversation server system, inaccordance with some embodiments.

DESCRIPTION OF EMBODIMENTS

The present invention is directed to a system and corresponding methodof organizing, storing, indexing and displaying messages sent to and bya user, such as in a client-server system (e.g., a web email system) ora computer system configured to enable local searching of electroniccommunications. In some embodiments, messages are organized and indexedas conversations. A conversation includes one or more relevant messagescovering a conversation topic. As will be described below, additionalcriteria, beyond the conversation topic, may be used to determine whichmessages are associated with each distinct conversation. The senders andrecipients of the messages associated with a conversation areparticipants of the conversation. In some embodiments, all the messagesdirected to a user are grouped into a plurality of conversations andpresented to the user in a conversation-based format, individually orjointly. In other embodiments, the messages are each treated asindividual entities in a message-based format which can be separatelystored, displayed, and retrieved in response to search queries.Optionally, a user may be provided with the ability to switch betweenthe conversation-based format and the message-based format.

FIG. 1 a block diagram illustrating an exemplary distributedclient-server system 100 (e.g., a web email system) for managingconversation data. System 100 includes one or more Conversation ClientSystem(s) 102 (also referred to herein as “Client 102”), a ConversationServer System 106 (also referred to herein as “Server 106”) and aCommunication Network 120 for connecting Clients 102 to ConversationServer System 106 and, optionally one or more Other Message ServerSystems 108 (e.g., other servers hosting different communicationservices such as email providers, instant messenger providers, and thelike). Communication Network 120 may include the Internet, one or morelocal area networks (LANs), one or more wide area networks (WANs), othertypes networks, or a combination of such networks.

A Client 102 may include a Browser 110 and a Conversation Assistant 112.Browser 110 can be a general purpose Internet browser (sometimes calleda Web browser) having a browser window used for displaying theconversations, or it can be a dedicated browser application having awindow for displaying conversations. The conversations and messages inthe conversations may be rendered by Browser 110 using hypertext markuplanguage (HTML) or any other appropriate rendering methodology. After auser submits a request through Browser 110 or a stand-alone ConversationAssistant 112 to Server 106 to access messages and/or conversationsstored in the user's account, Server 106 identifies a plurality ofmessages and/or conversations in the user's account according to theuser's request and transfers the messages and/or conversations and,optionally, a set of display information back to Client 102.Conversation Assistant 112 uses the messages and/or conversations anddisplay information to render the messages and/or conversations atClient 102. Alternatively, Conversation Assistant 112 may exist andoperate at Server 106 and may send information to Browser 110 fordisplay at Client 102.

Conversation Server System 106 includes Frontend Server 122,Conversation Engine 124, Conversation Data Updater 126, Query Engine128, Auxiliary Services 130, Attachment Database 132, User Database 134,one or more Message Databases 136, one or more Conversation Databases138, one or more Message to Conversation Maps 140, and one or moreIndexes 142.

Frontend Server 122 relays requests from Clients 102 and other MessageServer Systems 108 via Communications Network 120 and to ConversationEngine 124 and transmits responses from Conversation Engine 124 toClients 102 and Other Message Server Systems 108. Conversation Engine124 processes requests and input from Clients 102 to update conversationdata stored in Conversation Server System 106 and is also connected tovarious Auxiliary Services 130, such as spell checkers, advertisingservices, appointment scheduling services, attachment management, spamdetection, etc. When conversation data is updated, Conversation Engine124 passes instructions to Conversation Data Updater 126 to updateconversation data for a user such as Message Database 136, ConversationDatabase 138, Message to Conversation Map 140, and Index 142.Additionally, Conversation Engine 124 may store attachments associatedwith messages and/or conversations in Attachment Database 132. QueryEngine 128 is connected to User Database 134, Message Database(s) 136,Conversation Database(s) 138, Message to Conversation Map(s) 140, andIndex(es) 142 and receives queries from Conversation Engine 124 andpasses results retrieved from the conversation data structures toConversation Engine 128 for use in responding to requests from Clients102 and/or Other Message Server Systems 108.

Conversation Engine 124 responds to a variety of requests from Client102 (e.g., from requests issued on behalf of a user by ConversationAssistant 112 or Browser 110) related to messages and returnsconversation-based responses via its connection with CommunicationNetwork 120. In some embodiments, Frontend Server 122 includes a MailTransfer Protocol Gateway (e.g., a Simple Mail Transfer Protocol Gatewayor SMTP Gateway), which receives and sends messages. In someembodiments, Frontend Server 122 (e.g., SMTP Gateway), for example,transmits and receives messages using the Simple Mail Transfer Protocol(SMTP). Frontend Server 122 (e.g., SMTP Gateway) may receive a newmessage from Communication Network 120 and send the new message toConversation Engine 124 for additional processing. Additionally,Frontend Server 122 (e.g., SMTP Gateway) receives messages fromConversation Engine 124 and then transmits (via Communication Network120) those messages to the recipient addresses specified in themessages.

FIG. 2 is a block diagram illustrating a Conversation Client System 102in accordance with some embodiments. Client 102 typically includes oneor more processing units CPU(s) 202, one or more network or otherCommunication Interfaces 204, Memory 206, a User Interface 205 (e.g.,comprising a display device and a keyboard, mouse, touchpad, touchscreenor other input device), and one or more Communication Buses 208 forinterconnecting these components. Memory 206 typically includeshigh-speed random access memory, such as DRAM, SRAM, DDR RAM or otherrandom access solid state memory devices; and may include non-volatilememory, such as one or more magnetic disk storage devices, optical diskstorage devices, flash memory devices, or other non-volatile solid statestorage devices. Memory 206 may optionally include one or more storagedevices remotely located from the CPU(s) 202. Memory 206, oralternatively the non-volatile memory device(s) within Memory 206,comprises a non-transitory computer readable storage medium. In someembodiments, Memory 206 or alternatively the non-transitory computerreadable storage medium stores the following programs, modules and datastructures, or a subset thereof:

-   -   an Operating System 210 that includes procedures for handling        various basic system services and for performing hardware        dependent tasks;    -   a Network Communication Module (or instructions) 212 that is        used for connecting Conversation Server System 102 to other        computers (e.g., Conversation Server System 106 or Other Message        Server Systems 108) via one or more Network Interfaces 204        (wired or wireless) and one or more Communication Networks 120        (FIG. 1), such as the Internet, other wide area networks, local        area networks, metropolitan area networks, and so on;    -   a Web Browser 110 for loading web pages such as a Conversation        Web Page 214, which optionally includes code for executing a        Conversation Assistant 112-a as an embedded application in        Conversation Web Page 214, where Conversation Assistant 112-a        sends requests to Server 106 and displays data received from        Server 106;    -   optionally, a dedicated Conversation Assistant 112-b (e.g., a        stand-alone email client) for sending requests to Server 106 and        displaying data received from Server 106; and    -   optionally, Data 216 such as cached conversation data (e.g.,        recently accessed messages, attachments, etc.).

Each of the above identified modules, applications or programscorresponds to a set of instructions, executable by the one or moreprocessors of Client 102, for performing a function described above. Theabove identified modules, applications or programs (i.e., sets ofinstructions) need not be implemented as separate software programs,procedures or modules, and thus various subsets of these modules may becombined or otherwise re-arranged in various embodiments. In someembodiments, Memory 206 stores a subset of the modules and datastructures identified above. Furthermore, Memory 206 may storeadditional modules and data structures not described above.

FIG. 3 is a block diagram illustrating a Conversation Server System 106in accordance with some embodiments. Conversation Server System 106typically includes one or more processing units CPU(s) 302, one or morenetwork or other Communications Interfaces 308, Memory 306, and one ormore Communication Buses 308 for interconnecting these components.Memory 306 includes high-speed random access memory, such as DRAM, SRAM,DDR RAM or other random access solid state memory devices; and mayinclude non-volatile memory, such as one or more magnetic disk storagedevices, optical disk storage devices, flash memory devices, or othernon-volatile solid state storage devices. Memory 306 may optionallyinclude one or more storage devices remotely located from the CPU(s)302. Memory 306, or alternatively the non-volatile memory device(s)within Memory 306, comprises a non-transitory computer readable storagemedium. In some embodiments, Memory 306 or alternatively thenon-transitory computer readable storage medium stores the followingprograms, modules and data structures, or a subset thereof:

-   -   an Operating System 310 that includes procedures for handling        various basic system services and for performing hardware        dependent tasks;    -   a Network Communication Module (or instructions) 312 that is        used for connecting Server 106 to other computers (e.g., Client        102) via one or more Network Interfaces 304 (wired or wireless)        and one or more Communication Networks 102 (FIG. 1), such as the        Internet, other wide area networks, local area networks,        metropolitan area networks, and so on;    -   a Conversation Engine 124 module for responding to requests        from, and providing responses to, Conversation Assistant 112 as        described earlier, Conversation Engine 124 may include:        -   a Process New Message Module 320 for processing new            messages;        -   Filter Module 622 for creating, monitoring, and carrying out            filters (e.g., user-defined rules for managing incoming            and/or outgoing messages);        -   a Modify Attributes Module 324 for modifying attributes such            as labels associated with conversations and messages;        -   a Quoted Text Module 326 for identifying quoted text in new            messages as they are received and identifying changes in            quoted text when messages and/or conversations are modified            (e.g., by adding or deleting messages);        -   a Formatting Module 328 for providing formatting information            to be supplied to Conversation Assistant 112 at Client 102            (FIG. 1) for displaying conversation lists (including one or            more concise message headers), message lists, conversations            views (including one or more messages) and/or message views;        -   a Spam Identification Module 330 for identifying messages as            spam based on predefined criteria (e.g., system-defined            criteria or user-defined criteria);        -   a Delete/Remove Module 332 for marking messages and/or            conversations for deletion and subsequently removing them;        -   a Conversation Assistant Loader 334 for providing to            Conversation Assistant 112 at Client 102 (FIG. 1)            information that allows Conversation Assistant 112 to            process information supplied to it from Server 106. In some            embodiments, when Client 102 is first connected to Server            106 (e.g., when a user loads a web page for access to a            messaging account), Conversation Assistant Loader 334 is            invoked to load a conversation assistant to Client 102. In            some embodiments, Conversation Assistant Loader 334 loads            Conversation Assistant 112 onto Client 102 each time that a            messaging session is initiated at Client 102, while in other            embodiments Conversation Assistant 112 is retained by Client            102 from one messaging session to another;        -   a Compose/Send Module 336 for transmitting messages composed            by a user of Client 102 to Frontend Server 122 (FIG. 1) for            delivery to other users (e.g., users of messaging accounts            associated with Other Messaging Server Systems 108).    -   a Query Engine 128 for processing search queries including        user-generated search queries and system-generated search        queries;    -   a Conversation Data Updater 126 for updating conversation data        (e.g., indexes, tables, databases, etc.) at Server 106 to        reflect changes in messages and/or conversations;    -   Auxiliary Services 130 such as procedures for spelling        correction, attachment management, advertising services,        appointment scheduling services, attachment management, etc;    -   an Attachment Database 132 for storing attachments associated        with messages and/or conversations, Attachment Database 132 may        segregate attachments for individual users or may store        attachments in a shared repository so that if multiple users        have access to a single respective attachment, only one copy of        the respective attachment is stored in Attachment Database 132;    -   a User Database 134 storing information about users of Server        106, as described in greater detail below with reference to FIG.        4A;    -   a Message Database 136 storing information about messages for        Server 106, as described in greater detail below with reference        to FIG. 4D; in some embodiments, Server 106 stores a separate        Message Database 136 for each user;    -   a Conversation Database 138 storing information relating        messages in Message Database 136 together as conversations, as        described in greater detail below with reference to FIGS. 4D-4E;        in some embodiments, Server 106 stores a separate Conversation        Database 138 for each user;    -   a Message to Conversation Map 140 storing information enabling        conversations to be identified based on message identifiers, as        described in greater detail below with reference to FIG. 4D; in        some embodiments, Server 106 stores a separate Message to        Conversation Map 140 for each user; and    -   an Index 142 storing information enabling messages and/or        conversations matching a search query to be identified, as        described in greater detail below with reference to FIGS. 4B-4C;        in some embodiments, Server 106 stores a separate Index 142 for        each user.

Each of the above identified modules, applications or programscorresponds to a set of instructions, executable by the one or moreprocessors of Server 106, for performing a function described above. Theabove identified modules, applications or programs (i.e., sets ofinstructions) need not be implemented as separate software programs,procedures or modules, and thus various subsets of these modules may becombined or otherwise re-arranged in various embodiments. In someembodiments, Memory 306 stores a subset of the modules and datastructures identified above. Furthermore, Memory 306 may storeadditional modules and data structures not described above.

Although FIG. 3 shows a “Conversation Server System” 106 FIG. 3 isintended more as functional description of the various features whichmay be present in a set of servers than as a structural schematic of theembodiments described herein. In practice, and as recognized by those ofordinary skill in the art, items shown separately could be combined andsome items could be separated. For example, some items shown separatelyin FIG. 3 could be implemented on single servers and single items couldbe implemented by one or more servers. The actual number of servers usedto implement a Conversation Server System 106 and how features areallocated among them will vary from one implementation to another, andmay depend in part on the amount of data traffic that the system musthandle during peak usage periods as well as during average usageperiods.

User, Message and Conversation Data Structures

FIG. 4A illustrates a User Database 134 according to some embodiments.User Database 134 stores information pertaining to users of ConversationServer System 106. The information stored includes a User Identifier 402(e.g., a globally unique identifier that is associated with a particularuser account such as a N-bit binary number). This User Identifier 402can be used to identify conversation data structures (e.g., databasestables, maps, indexes, etc.) that are associated with the user. Theinformation stored in User Database 134 may also include UserInformation 404 relating to user preferences, security information,recently submitted queries, user-defined filters, address and otherinformation for contacts of the user, calendar information, a userprofile including contacts, etc. The user-defined filters are used byServer 106 to perform operations on messages and/or conversations upondetection of predefined events (e.g., during the processing of each newmessage as it is being added to the user's mail account). User Database134 may also include information representing user-defined labels, whichcan be applied to messages at the request of the user. In embodimentswhere conversation data structures are stored on a per-user basis, UserDatabase 134 relates a respective User Identifier 402 to the Index,Message to Conversation Map, Conversation Database and Message Databasefor the user via Index Pointer 408, Message to Conversation Map Pointer410, Conversation Database Pointer 412 and Message Database Pointer 414,respectively. In other words, an index for a particular user may beassociated with the particular user so that a search query from theparticular user is performed over the index for the particular user andthus returns a first set of results, while a search query from adifferent user is performed over the index for the different user andthus returns a second set of results that is different from the firstset of results.

As described above, the Index(es) 142 are used to generate results inresponse to search queries. In conventional indexes, terms in a messageare associated only with the message. Thus, when a search is performedover a conventional index (e.g., “Tahoe AND dinner”), the resultsinclude only messages that match the query (e.g., messages that includeboth the terms “Tahoe” and “dinner”). This approach works for manyapplications where messages are the primary unit of information.However, when messages are organized as conversations and theconversations are used as the primary unit of information, users willexpect that a search query will be performed over the conversation as awhole. For example, a user would expect a search query for aconversation that includes one message with the term “Tahoe” and anothermessage with the term “dinner” to be returned in response to the searchquery “Tahoe” and “dinner” even if none of the individual messages inthe conversation include both the terms “Tahoe” and “dinner.” However, apurely message-based index will not return conversations including queryterms divided over different messages.

One possible solution is to create two separate indexes, one thatindexes messages and another separate index that indexes conversations.However, this approach is inefficient because it dramatically increasesthe processing and storage cost of indexing and retrieving the messagesand conversations, because multiple separate indexes (e.g., a messageindex and a conversation index) need to be created and updated andsubsequently searched when a search query is received. The embodimentsof an index described below refer to an index that enables bothmessage-based and conversation-based queries, thereby providingpredictable results to users while dramatically reducing the processingand storage cost of indexing and retrieving messages and conversations.

FIG. 4B illustrates a schematic illustration of an exemplaryconversation 420 including four messages and an exemplary Simulated(e.g., virtual) Data Structure 422 for the fourth message (e.g., themost recent message in the conversation). The Simulated Data Structure422 indicates “mapped” locations of terms in the conversation thatcorrespond to original locations of the terms in the conversation thatincludes the four messages. As used herein, the terms may include anycombination of text content terms (e.g., text from the message body of amessage in the conversation), labels, tags, and/or header informationfrom the messages and the conversation. In the conversation an earliestmessage (Message 1) includes original text (Text 1); a reply (Message 2)to the earliest message (Message 1) includes original text (Text 2) andquoted text (Text 1) from the first message; another message (Message 3)includes original text (Text 3) that is not in any of the othermessages; and a most recent message (Message 4) to the second message(Message 2) includes original text (Text 4) and quoted text (Text 1 andText 2) from multiple previous messages. The terms in the most recentmessage (Message 4) are identified as “Message Terms” and in someembodiments are divided between “original text” and “quoted text” terms.The terms in the other messages are all identified as “conversationterms.” It should be noted that the exemplary conversation describedwith reference to FIG. 4B corresponds in structure to the conversationillustrated in the exemplary user interfaces illustrated in FIG. 11C(where message 1 corresponds to the chronologically first message in theconversation and message 2 corresponds to the next message inchronological order, etc.).

In this example, Message 4 is selected as a “representative message” forthe conversation, and a Simulated Data Structure 422 for Message 4includes three partitions, where original terms in the conversation haveoriginal locations within the conversation that correspond to mappedlocations within the simulated data structure. In some embodiments thelocations are specified by N+M bit binary numbers, wherein the N highestorder bits are selected in accordance with the partition to which theterm is assigned and the M other bits are used to specify the locationof the terms within the partition. In the example shown in FIG. 4B,there are two high order bits, and all of the terms identified asmessage terms in the original text have the high order bits “00” in thesimulated data structure for Message 4, while all of the termsidentified as message terms in the quoted text have high order bits “01”in the simulated data structure for Message 4, and all of the termsidentified as conversation terms have high order bits “11” in thesimulated data structure for Message 4. Alternatively the partitions forthe message terms could be merged and a single set of high order bits(e.g., “00”) could be used for all message terms without regard towhether the terms occur in original text or quoted text of the message.

The M lower order bits are typically used to specify locations withineach of the partitions that correspond to the order in which the termsoccur in the conversation itself In other words, in someimplementations, consecutive words in a sentence or paragraph are givenmapped locations with consecutive mapped locations within a partition.Preserving the relative locations and order of terms within thepartitions is advantageous, because it enables conversation-basedsearches that include location and/or order constraints (e.g., “Term Xwithin 3 words for Term Y” or “Term X followed by Term Y”) to retrieveconversations that include conversation terms matching the locationand/or order constraints. For example, a text string such as “LakeTahoe” could be identified in the conversation index components for arepresentative message, because location and order of terms frommessages in the conversation is preserved for conversation terms inSimulated Data Structure 422. Additionally, labels, tags and other itemsof header information that do not have specific locations in the textcontent of a message may be assigned a set of one or more predefinedlocations within the message or conversation. In one example, for onepredefined location, such as location 0, is assigned to all messagemetadata (e.g., labels, tags, header information and any otherinformation that does not have a location in the body of a message).Furthermore, for representative messages, a second predefined location,such as location 2²⁰ (e.g., a first position in the partition of thesimulated data structure for conversation terms) is assigned to messagemetadata of messages in the conversation, but not in the representativemessage, also herein called conversation metadata.

In some embodiments, different types of metadata are indexeddifferently. For example, labels may be assigned a predefined location,such as location 0, while terms in the header information are assignedlocations corresponding to the location of the header information termsin the message (e.g., if the header has five terms, the first headerterm is assigned location 1, the second header term is assigned location2, etc. and the first body text term is assigned location 6). Inaddition, in some implementations, the header information terms areindexed differently from the body text terms. For instance headerinformation terms may have a custom format. In one exemplaryimplementation of a system using a custom format for header information,when a message is sent to a user with an identifier“UserName@email.com,” the term corresponding to the header informationindicating that the email was sent to UserName@mail.com is indexed as“TO_UserName” rather than “UserName@email.com.” Alternatively, headerinformation terms are indexed using both a custom format (e.g.,“TO_UserName”) as well as a standard format (e.g.,“UserName@email.com”). Thus, a single term in the header text may berepresented by multiple index components in different index entries inthe index (e.g., an index entry for “TO_UserName” and an index entry for“UserName@email.com”).

In some embodiments, Simulated Data Structure 422 is created for arepresentative message in each conversation and is either temporarily orpermanently stored in Message Database 136 and is used to generate Index142. In other embodiments, Simulated Data Structure 422 is not actuallycreated but is merely an implicit data structure that corresponds toIndex 142. In other words, Index 142 is created and updated so as toassociate message terms and conversation terms with each conversation'srepresentative message as though the message terms and conversationswere stored in a Simulated Data Structure 422, without actually creatingthe corresponding Simulated Data Structure 422. However, when a query isperformed on Index 142, respective representative messages are returnedin accordance with the message terms and conversation terms that appearto occur in corresponding simulated data structures, without regard towhether the simulated data structures exist or have ever existed. Thus,Simulated Data Structure 422 described above with reference to FIG. 4Bcan be understood to be a theoretical construct that helps to understandthe indexing scheme described below with reference to FIG. 4C withoutregard to whether or not data is actually stored in a data structurethat is organized like Simulated Data Structure 422.

FIG. 4C illustrates an exemplary Index 142. Index 142 includes aplurality of Index Entries 430, each index entry including a respectiveTerm Identifier 432 and one or more Index Components 434. In theexemplary Index 142 illustrated in FIG. 4C, each respective indexcomponent of the respective index entry identifies a message (e.g., by aMessage ID) that is associated with a respective term and a mappedlocation of the term within the simulated data structure for themessage. For example, Term 2 occurs in Message 1 as a message term inquoted text at location 01000011, while Term 2 occurs in Message 4 as amessage term in original text at locations 00001001, 00010001, as amessage term in quoted text at location 010001100 and as a conversationterm at location 11000011. In some embodiments, an index componentcorresponds to a message ID and corresponding mapped location. Thus, inthe example above, the index entry for Term 2 includes at least fourindex components for Message 4: {Message ID (4), 00001001}, {Message ID(4), 00010001}, {Message ID (4), 010001100}, and {Message ID (4),11000011}. It should be noted that, in this example, Message 4 is arepresentative message for a conversation and thus has conversationterms in addition to having message terms. In some embodiments, one ofthe terms is a representative-message label that identifies messages asrepresentative messages. For example, if Term 1 is therepresentative-message label, then Message 4, Message 7 and Message Wwould each be identified in Index 142 as being representative messagesfor the respective conversations with which they are associated.

It should be understood that when generating the index, there is atradeoff between the size of the index and the speed with which complexqueries can be performed. In some index-size-reducing implementationswhich emphasize reducing the size of the index over the speed ofperforming complex queries quickly, repeated terms in a conversation canbe represented by a reduced set of representative-message indexcomponents or even a single representative-message index component. Inthese index-size-reducing implementations, the size of the index isreduced by storing fewer index components than search-speed-increasingimplementations, but more complex queries (e.g., queries that includelocation constrained terms in the conversation terms such as a searchfor the string “TermA TermB TermC” are performed by a multi-stage querywhere the first stage of the query identifies the messages in theconversation and the second stage of the query checks to see if themessages are associated with index components that satisfy the locationconstraints). An exemplary method for performing suchlocation-constrained queries is described in greater detail below withreference to operations 784-786.

In contrast, in some search-speed-increasing implementations whichemphasize increasing the speed of performing complex queries instead offocusing on reducing the size of the index, repeated terms in aconversation are represented by multiple differentrepresentative-message index components in an order based on a relativelocation of the terms corresponding to the index components in theconversation. In a simple search-speed-increasing implementation, arepresentative-message index component is stored for each occurrence ofa term in the conversation. However, when each term in a conversation isindexed each time it occurs, there is the possibility that the indexspace will be used up or the index will grow very large (e.g., if usersare repeatedly forwarding messages that quote the entire text ofprevious messages). Thus, in a partial optimization, large blocks ofrepeated text (typically quoted text from a previous message) are notre-indexed (e.g., “logically complete text strings as discussed belowwith reference to operation 722). In either case, a complex query (e.g.,a query that includes location constrained terms in the conversationterms such as a search for the string “TermA TermB TermC”) can typicallybe performed in a single stage, thereby reducing the search time ascompared with the index-size-reducing implementations. Thus, while FIG.4C illustrates an index for an exemplary search-speed-increasingimplementation, other implementations including index-size-reducingimplementations and hybrid implementations are contemplated anddescribed below.

Optionally, Term Identifier 432 for a respective term is a fixed lengthtoken value for a token representing the respective term. For example,in some implementations, the Term Identifier 432 for each distinct termin Index 142 is a 32 bit value. The terms “tokens” and “token values”are sometimes synonymous, both meaning a set of a fixed length valuesused the represent terms having a variety of lengths (also called textlengths).

More generally, in some embodiments, an index component includes amapped location of a term, plus its associated Message ID which may beshared with N−1 other locations in the same data structure when thereare N copies of the same term (e.g., the word “Monday”) in the sameconversation. In other words, index components for a single message maybe organized as a set of components (also called a meta-component orcomponent set) for a single message, where a meta-component or componentset for a particular term that occurs multiple times in a messageincludes a single instance of a Message ID for a respective message andmultiple mapped locations that correspond to original locations ofoccurrences of the particular term in the respective message and/orconversation with which the message is associated (if the respectivemessage is a representative message for the conversation). Thus, in theexample above, the index entry for Term 2 includes a single set ofcomponents (e.g., meta-component or component set) for Message 4, whichincludes Message ID (4) and at least four mapped locations thatcorrespond to occurrences of Term 2 in the message and conversationassociated with Message 4: 00001001, 00010001, 010001100 and 11000011.

It should be understood that in some embodiments only two partitions areused (e.g., a “message term” partition and a “conversation term”partition or an “original text” partition and a “quoted text”partition). In embodiments where only a “message term” partition and a“conversation term” partition are used, a single high order bit may beused (e.g., “0” for message terms and “1” for conversation terms) toidentify the partition associated with each instance of a term.Similarly in embodiments where only an “original text” partition and a“quoted text” partition are used, a single high order bit may be used(e.g., “0” for message terms in the original text and “1” for messageterms in the quoted text). While exemplary simulated data structures arenot described for these embodiments, one having ordinary skill in theart would readily understand how the index and simulated data structuresdescribed herein could be adapted for use with more or fewer partitionsby using as many high order bits as necessary to uniquely identifypartitions (e.g., two high order bits could be used to identify up tofour distinct partitions, three high order bits could be used toidentify up to eight distinct partitions, etc.).

In some embodiments, the mapped locations of the respective indexcomponents indicative of conversation terms are in a predefined range oflocations associated only with conversation terms (e.g., all locationsbetween 11000000 and 11111111). Similarly, the mapped locations of therespective index components indicative of message terms are in apredefined range of locations associated only with message terms (e.g.,all locations between 00000000 and 00111111). In some embodiments themapped locations of the respective index components indicative ofmessage terms in original text are in a predefined range of locationsassociated only with message terms in original text (e.g., all locationsbetween 00000000 and 00111111), while the mapped locations of therespective index components indicative of message terms in quoted textare in a predefined range of locations associated only with messageterms in quoted text (e.g., all locations between 01000000 and01111111).

In some embodiments that focus on differentiating message terms fromconversation terms, for a respective message of a conversation (e.g., arepresentative message for the conversation), index componentsindicative of the plurality of message terms and index componentsindicative of the plurality of conversation terms are stored in Index142. In these embodiments, the one or more index components indicativeof the plurality of message terms are distinguished from the one or moreindex components indicative of conversation terms by partitioning anaddress space for the respective message (e.g., the address space in aSimulated Data Structure 422, as illustrated in FIG. 4B for Message 4),the address space having a respective address for each message term andfor each conversation term. In these embodiments, the respective addressfor a respective conversation term in the conversation including therespective message is indicative of a mapped location of the respectiveconversation term within the address space for the respective message.

In some of these embodiments, the address space for the respectivemessage is partitioned using a set of one or more high order addressbits (e.g., the N highest order bits, as discussed above with referenceto FIG. 4B) to specify partitions. In these embodiments, a mappedlocation of a message term in the address space for the respectivemessage is specified by an address having one or more high order addressbits with a first value (e.g., “00” or “01”), and a mapped location of aconversation term in the address space for the respective message isspecified by an address having one or more high order address bits witha second value (e.g., “11”) different from the first value. In otherwords, for all conversation terms (e.g., terms that are in theconversation but not in the respective message) a mapped location isspecified by an address having a set of high order address bits having avalue that is different from the value of a set of high order addressbits that are used in an address specifying a mapped location of any ofthe message terms (e.g., terms that are in the respective message).Additionally, in these embodiments, quoted text in the message terms maybe differentiated from original text in the message terms in Index 142by high order bits in mapped locations of the message terms, asdiscussed in greater detail below.

In some embodiments that focus on differentiating terms in original textfrom terms in quoted text in a respective message, index componentsindicative of terms that occur in the original text of the respectivemessage and index components indicative of terms that occur in thequoted text of the respective message are stored in Index 142. In theseembodiments, the one or more index components indicative of the termsthat occur in original text of the respective message are distinguishedfrom the one or more index components indicative of terms in therespective message that occur in the quoted text of the respectivemessage and not in the original text of the respective message (althoughthese terms typically appear elsewhere in the conversation, such as inthe message from which the quoted text originated) by partitioning anaddress space for the respective message (e.g., as illustrated in FIG.4B for Message 3), the address space having a respective address foreach term that occurs in original text of the respective message andeach term that occurs in quoted text of the respective message. In theseembodiments, the respective address for a respective term in the quotedtext of the respective message is indicative of a mapped location of therespective term within the address space for the respective message.

In some of these embodiments, the address space for the respectivemessage is using a set of one or more high order address bits (e.g., theset of N highest order bits, as discussed above with reference to FIG.4B) to specify partitions. In these embodiments, a mapped location of aterm that occurs in original text of the respective message in theaddress space for the respective message is specified by an addresshaving one or more high order address bits with a first value (e.g.,“00”); and a mapped location of a term that occurs in quoted text of therespective message in the address space for the respective message isspecified by an address having one or more high order address bits witha second value (e.g., “01”) different from the first value. In otherwords, in these embodiments, for all terms for original text of therespective message a mapped location is specified by an addressincluding a set of high order address bits having a value that isdifferent from the value of a set of high order address bits ofaddresses that specify mapped locations of any of the terms for quotedtext in the respective message. Additionally, in these embodiments, theindex may also include high order bits that differentiate betweenmessage terms and conversation terms, as described in greater detailabove. For example, the set of high order address bits (e.g., “00” or“01”) of addresses that specify respective mapped locations of themessage terms (e.g., terms for original or quoted text in the respectivemessage) may have a different value than the set of high order addressbits (e.g., “11”) of addresses that specify respective mapped locationsof the conversation terms (e.g., terms that appear in a conversationthat includes the respective message but do not appear in the respectivemessage).

A search query is processed using Index 142 by identifying one or morematching terms that match query terms from the search query. Indexentries 430 for the one or more matching terms are compared (e.g.,logically combined using Boolean operators) to identify Message IDs formessages matching the search query. For example, when the searchincludes a plurality of terms which must all be present (e.g., “Term XAND Term Y”), the Message IDs that are identified as matching the searchquery are Message IDs that are associated with at least one indexcomponent from the index entry for each of the query terms. In somecircumstances, index components corresponding to message terms in quotedtext (e.g., index components for locations including high order bits“01”) can be ignored while processing the search query so as to producesearch results only for terms in original text of messages. In somecircumstances, index components corresponding to conversation terms(e.g., index components for locations including high order bits “11”)can be ignored while processing the search query so as to producemessage-based search results.

FIG. 4D illustrates an exemplary Message to Conversation Map 140,Conversation Database 138 and Message Database 136. Message toConversation Map 140 correlates Message IDs 440 with correspondingConversation IDs 442. Thus, when a respective message with a respectiveMessage ID 440 is identified as matching a search query, the respectiveMessage ID 440 can be used to identify a Conversation ID 442 for theconversation that includes the message associated with the respectiveMessage ID. A Message ID 440 is a unique identifier for a message (i.e.,unique with respect to all other messages stored for the same user).Message ID 440 may be a N-bit number that is used to reference aparticular message stored in Message Database 136. In one embodiment,Message ID 440 is a 64-bit number. Optionally, message ID 440 iscomposed of date/time stamp information and information relating to thecontent of the message to which Message ID 440 refers. The date/timestamp information is optionally a Y-bit (e.g., 32-bit or 48-bit)date/time stamp provided by the system indicating when a message isreceived by Conversation Server System 106.

Conversation Database 138, in turn relates Conversation IDs 442 tocorresponding information associated with Conversations, which may beincluded in corresponding Conversation Entries 444. A Conversation Entry444 may include one or more of Header 446 information (e.g., participantinformation, date/time information, message subject line information, orother information specified by various standard electronic messagingformats such as the Header Information described in “Internet MessageFormat” Request for Comment 2822 of The Internet Society, 2001,hereinafter RFC 2822), which may be aggregated from messages associatedwith a conversation. The Conversation Entry 444 may also includeLabels/Attributes 448, which may include conversation-specific labelsand/or message labels that are aggregated from messages associated witha conversation; and Message IDs 440 for messages that are associatedwith a conversation (sometimes referred to as messages in theconversation, or messages in the conversation thread). Thus, when arespective conversation with a Conversation ID is identified as matchinga search query, the respective Conversation ID can be used to identify avariety of conversation information including a list of Message IDs 440for messages associated with the respective conversation.

Message Database 136, in turn, provides access to information aboutmessages. In the embodiment shown in FIG. 4D, Message Database 136 isorganized as Message Entries 450, and the information it stores aboutmessages is typically retrieved using Message IDs 440 (e.g., the MessageIDs identified via Conversation Database 138 as being associated withthe respective conversation). Message Entry 450 may include, for arespective message, one or more of Header 452 information (e.g.,senders/recipients, date/time information or other Header Informationsuch as that described in RFC 2822); Labels/Attributes 448, which mayinclude user-defined labels and/or system-defined labels; Content 456 ofthe respective message; and Attachment Info 458 (if any) for therespective message. Attachment Info 458 may include attachments and/orpointers to attachments in a single-user or multi-user attachmentdatabase (e.g., Attachment Database 132 in FIG. 1).

It should be understood that the data structures (e.g., databasestables, maps, indexes, etc.) described herein are merely exemplary andalternative data structures could be used in analogous manners withoutdeparting from the scope of the disclosed embodiments. For example, theconversation database may not be arranged as shown in FIG. 4D asConversation Database 138-a. Rather the conversation database may havean alternative structure such as Alternative Conversation Database 138-bshown in FIG. 4E. Alternative Conversation Database 138-b also relatesConversation IDs 442 and Message IDs 440 to Label IDs 448, but unlikeConversation Database 138-a in FIG. 4D, these components are arranged intriplets in Alternative Conversation Database 138-b, where there is aseparate entry 460 for each unique set of Conversation ID, Message IDand Label ID. Thus, in these embodiments, if there are multiple messagesin a respective conversation, there will be multiple entries 460 for therespective conversation, at least one for each message in the respectiveconversation. In some of these embodiments, there are multiple entries460 for a message with multiple labels (e.g., one entry for each labelassociated with the message), while in other embodiments, each entry fora conversation having a respective message includes a Conversation ID442 for the conversation, a Message ID 440 for the respective message,and variable length component including a list of all Label IDs 448associated with the respective message. Additional alternative datastructures are not described herein so as not to unnecessarily obscurerelevant aspects of the disclosed embodiments.

FIGS. 5A and 5B illustrated exemplary flows of data between the variousdata structures described above when processing a search query. FIG. 5Aillustrates a flow of data for processing a conversation-based searchquery (e.g., a search query where the search results will be organizedas conversations, as illustrated in FIGS. 11A-11F below) while FIG. 5Billustrates a flow of data for processing a message-based search query(e.g., a search query where the search results will be organized asmessages, as illustrated in FIGS. 12A-12B below).

In FIG. 5A, a conversation-based search query associated with a User IDis received (e.g., from a Client 102 requesting conversations matching aparticular set of criteria) or generated automatically by ConversationServer System 106 (e.g., Query Engine 128 may generate a search queryfor a subset of conversations with the “Inbox” label to generate aninbox view). Server 106 identifies user-specific data structures thatare associated with the User ID associated with the search query in UserDatabase 134. The search query is then executed over an Index 142associated with the user, where Message IDs for any messages matchingthe search query are identified, as described in greater detail above.Message to Conversation Map 140 is used to retrieve Conversation IDsassociated with respective Message IDs for matching messages. Respectiveretrieved Conversation IDs are, in turn, used by Server 106 to retrieveconversation information from the Conversation Database 138. Theconversation information for the respective retrieved Conversation IDsmay be used to produce search results (e.g., a conversation list) fordisplay at Client 102 (e.g., as illustrated in the exemplary userinterfaces shown in FIGS. 11A-11B). The conversation information mayinclude Message IDs, which are used to retrieve message information formessages of the identified conversation(s) from Message Database 136.The message information may also be used to produce search results(e.g., conversation lists, as shown in FIGS. 11A-11B and/or conversationviews as shown in FIGS. 11C-11F). In some embodiments, search resultsare generated by combining the conversation information retrieved fromConversation Database 138 and the message information retrieved fromMessage Database 136.

In FIG. 5B, a message-based search query associated with a user ID isreceived (e.g., from a Client 102 requesting messages matching aparticular set of criteria) or generated (e.g., by Conversation ServerSystem 106 or Query Engine 128 of Server 106 (FIG. 1) generating aninbox view or other predefined view that is generated by performing asearch). Server 106 identifies user-specific data structures that areassociated with the User ID associated with the search query in UserDatabase 134. The search query is then executed over an Index 142associated with the user, where Message IDs for any messages matchingthe search query are identified, as described in greater detail above.Message IDs are used to retrieve message information for messages of theidentified conversation(s) from Message Database 136. The messageinformation may also be used to produce search results (e.g., messagelists as illustrated in FIG. 12A and message views as illustrated inFIG. 12B).

Conversation/Message Data Management

FIGS. 6A-6C include a flowchart representing a method 600 for storing,indexing and retrieving message information, according to certainembodiments. Method 600 may be governed by instructions that are storedin a non-transitory computer readable storage medium and that areexecuted by one or more processors of one or more servers, such as inconversation server system 106 (as illustrated in FIGS. 1 and 3). Eachof the operations shown in FIGS. 6A-6C may correspond to instructionsstored in a computer memory or computer readable storage medium. Thecomputer readable storage medium may include a magnetic or optical diskstorage device, solid state storage devices such as Flash memory, orother non-volatile memory device or devices (for example, devices inmemory 306 of conversation server system 106). The computer readableinstructions stored on the computer readable storage medium may includeone or more of: source code, assembly language code, object code, orother instruction format that is executed or interpreted by one or moreprocessors. Some operations in method 600 may be combined and/or theorder of some operations may be changed.

An embodiment for processing a received message is shown in FIG. 6A. Asender (e.g., a Conversation Client System 102 or Other Message ServerSystem 108) sends (602) a message to a user associated with ConversationServer System 106. The message is received (604) by Frontend Server 122(e.g., SMTP Gateway) (FIG. 1), for example, where some processing andhandling may occur, and may then be passed to Conversation Engine 124(FIG. 1) where the received message is associated with a User ID for theuser to whom the message is directed. Conversation Engine 124 maygenerate a Message ID for the received message. The Message ID istypically used to distinguish one message from other messages in theuser's account. In an embodiment, the Message ID is a N bit numbercomposed of one or more parts. For example, in an embodiment the MessageID may be a 64 bit number consisting of a Y bit (e.g., 32 bit or 48 bit)date/time stamp and a 64-Y bit hash of the message contents. A hash is amathematical function that maps values from a large domain into asmaller one. One of ordinary skill in the art will recognize that thereare many different ways to create Message IDs that provide sufficientinformation to distinguish messages from each other.

Conversation Engine 124 may then parse the received message into itsconstituent parts. These parts might include the address of the sender,one or recipient addresses, the subject of the received message, a“References:” field as that field is described in RFC 2822, an“In-Reply-To:” field also described in RFC 2822, the content of thereceived message, and any other information that might be contained inthe received message. In some embodiments, either before after parsingthe received message, the received message is passed to a SpamIdentification Module 330 (FIG. 3) to determine if the received messagematches spam criteria. In some embodiments, Spam Identification Module330 works asynchronously, and in parallel with other processing of thereceived message. In some embodiments, the spam criteria are designed todetermine whether a received message is likely to be an unsolicitedmessage that the user is unlikely to want to read.

After the message is received, Server 106 identifies (606) data (e.g.,databases tables, maps, indexes, etc.) associated with the User IDassociated with the received message. The received message is added(608) to Message Database 136 (FIG. 1). In one embodiment, the receivedmessage is added to Message Database 136 and not subsequently modifiedthereafter, except perhaps for deletion. Additionally, if the receivedmessage has attachments, the attachments may be added (610) toAttachment Database 132 (FIG. 1).

Some or all of the parts of the received message that are obtainedduring parsing of the received message may be used to assist indetermining a conversation, if any, to which the received messagebelongs and associating (612) the received message with a matchingconversation. For example, the subject of the received message iscompared to other messages with the same subject since it is likely thatmessages within a conversation will have the same, or very nearly thesame, subject. If a matching conversation is not found, then a newconversation is created and the received message is associated with thenew conversation. In some implementations, messages are determined to berelated to each other and part of the same conversation, based ontemporal information, sender information, subject information, otherinformation in the header, or system supplied information, or anycombination thereof. One embodiment formulates the search query used toidentify matching conversations and/or messages using the subject of themessage along with the “References:” and/or the “In-Reply-To:” field.When a message is associated with an existing conversation or a newconversation, Conversation Data Updater 126 updates (614) Message toConversation Map 140 (FIG. 1) to reflect the changes.

Next, an initial set of attributes including one or more labels isassigned (616) to the received message. These type of attributes mayinclude, for example, labeling a received message as “unread” (whichtypically means that the message has been neither viewed nor marked asread) to indicate that the received message is new. Another attributethat is initially assigned to messages, other than messages sent by theuser, is the “Inbox” label. Another set of attributes that are initiallyassigned to each message are the user-defined labels associated withother messages (if any) in the same conversation. The user-definedlabels associated with the other messages in the conversation aredetermined by searching a conversation database to identify other labelsassociated with messages in the same conversation. Optionally, otherattributes are initially assigned to the message as well. The attributesassociated with a message may be used to search a message database toobtain message with similar attributes. In one example, a search isexecuted to search for all messages which are labeled as “unread”.

Additionally, user-defined labels may be added to the received messagebased on filters specified by the user. Typically, a user-defined filterincludes a set of filter conditions and a set of actions. The filterconditions define which messages match the filer and the actions includeactions that specify labels that are to be added or removed from thereceived message (e.g., messages from a particular user may be marked as“read” by removing an “unread” label or marked as important by adding a“Starred” label). The filter conditions can include criteria withrespect to the sender, the recipients, text in the message subject, textin the received message, and the like. In some embodiments, the actionsperformed, with respect to a particular filter when the filter criteriaare satisfied by a respective message, include one or more of: “removefrom inbox” (i.e., remove the “Inbox” label from the received message,if present), adding a system label (sometimes called a category) to thereceived message, and adding a user-defined label to the receivedmessage. In one example, the filter specifies that all messages having aparticular term or combination of terms be labeled with the “Trash”label. Another filter may specify that if the terms “Lake Tahoe” appearanywhere in the received message, a “Vacation” label is to be added tothe received message.

In some embodiments, the labels associated with messages include labelsassociated with individual messages, but not necessarily all themessages in a conversation. For instance, a “Marked for Deletion” label(sometimes also called the “Trash” label) may be associated with anindividual message in a conversation, while not being associated withother messages in the same conversation. Messages marked for deletionare still stored by Server 106, and are still associated withconversations, but are normally not displayed at Client 102 when thecorresponding conversations are displayed. One or more special views maybe employed to enable a user to view messages having the label “Markedfor deletion.” Such views afford the user the opportunity to “undelete”a message. On the other hand, in some embodiments, when a user-definedlabel is associated with a conversation, that label is associated withall messages in the conversation. In some other embodiments, when auser-defined label is associated with a conversation, that label isassociated with all messages in the conversation that meet predefinedcriteria (e.g., messages other than those marked for deletion). Thus,Server 106 supports both message-specific labels that are applied toparticular messages and conversation-specific labels that are applied toa conversation as a whole (which may include multiple messages).

It should be noted that in some instances it may be desirable to mark amessage for deletion, but not remove it from the conversation; this maybe accomplished by using, for example, a particular label. When theconditions are such that the message may now be removed from theconversation, the message may be removed from the conversation asdescribed above. Conditions which may allow for the removal of themessage from Message to Conversation Map 140 and Conversation Database138 may include the passing of a certain amount of time since themessage was marked for deletion, an action by the user (e.g., ascommunicated by Client 102 to Server 106), or other triggering events.Conversations may also be marked for deletion, but not yet removed fromthe user's messaging account. When a conversation is to be permanentlyremoved from the user's mail account, then the Message to ConversationMap 140 entries for the messages in the conversation may be removed. Inaddition, the corresponding Conversation Entry 444 (FIG. 4D) may beremoved from the Conversation Database 138, and furthermore IndexComponents 434 (FIG. 4C) for the messages in the conversation may beremoved from the Index 142.

In this document, “associating” a particular label with a message, and“marking” the message with the particular label, are considered to bethe same or equivalent operations. Additionally, the labels of aconversation may be added to the conversation's messages since, in oneembodiment, a message inherits the labels of its conversation. Labelscan include system-defined labels, for example, such as Inbox, Trash,Spam, All Documents and Unread. In some embodiments, certain systemlabels may be mutually exclusive (e.g., Inbox, Trash and Spam). Labelscan also include user-defined labels, sometimes herein calledCategories.

After any labels are assigned to the received message or conversation(616), Conversation Database 138 and/or Message Database 136 are updated(618) to reflect the newly assigned labels. In some embodiments, at orabout the time that labels are assigned to a message or conversation,the results from Spam Identification Module 330 (FIG. 3) are retrieved.If Spam Identification Module 330 classifies the received message asspam, a “Spam” label is assigned to the received message and anyconflicting labels (e.g., “Inbox” or “Trash”) are removed from thereceived message.

In some embodiments, quoted text, if any, is identified (620) in thereceived message (e.g., by comparing the content of the received messagewith content of prior messages in the conversation associated with thereceived message). After the conversation association has been made,labels have been associated with the received message and, optionally,any quoted text has been identified, the received message is indexed forsearching, and Server 106 updates (622) the Index 142 associated withthe User ID by adding index entry components 434 (see FIG. 4C) for thereceived message to respective index entries 430 in the Index 142. Inone embodiment all of the text of the received message is indexed alongwith portions of the header information. In some embodiments, “noisewords” (e.g., words such as “the”, “a” and “or”) in the message body arenot indexed, but all other text in relevant portions of the receivedmessage are indexed. One of ordinary skill in the art will recognizethat the portions of the received message that are searchable (sometimesexpressed as “considered to be searchable”) are indexed. As noted below,in some embodiments information concerning labels associated with thereceived message are added to Index 142 (FIG. 1) at a later stage of themessage processing.

Finally, Server 106 optionally sends (624) an acknowledgment to thesender of the message indicating that the message has been received. Inimplementations or circumstances in which a message n acknowledgment issent, The sender (e.g., Conversation Client System 102 or Other MessageServer System 108) receives (626) the acknowledgement and, typically,updates its own records to indicate that the message has been receivedby the recipient. After receiving a message, Server 106 may receive asearch query and execute a search over the updated Index and use theother updated data structures to retrieve information related to anymatching messages and or conversations, as described in greater detailbelow with reference to FIGS. 6B-6C.

Initially Conversation Client System 102 sends (628, FIG. 6B) a searchquery to Conversation Server System 106, and the search query isreceived (630) by Server 106 and processed as described below. Thesearch query may be user specified, or system generated (e.g., inresponse to the user clicking on an “Inbox” icon). The search terms inthe search query may come from the user in the form of words orcombination of words. For example, a user could search for messagescontaining the words “Tahoe” and “dinner” and the stored messages and/orconversations including these terms, if any, would be returned by Server106. Similarly, a search query can be automatically generated by Server106 in response to certain user actions. For example, a system generatedsearch query may search for conversations having the label “Inbox” ifthe user desired an Inbox view to be displayed at Client 102, howeverthe user does not need to type “Inbox” into a search box, but ratherselects a predefined user interface component that is a hyperlink to anInbox view for the user's messaging account. After receiving the searchquery, Server 106 identifies (632) data structures (e.g., databasestables, maps, indexes, etc.) associated with the User ID andsubsequently uses the data structures for the user to identify MessageIDs for any matching messages in Index 142 (634).

As described in greater detail above, many features of the disclosedembodiments use conversations as the basic unit of information, asopposed to messages. For instance, in some embodiments, the Inboxpresents the user with a list of conversations, while in otherembodiments, the Inbox presents the user with a list of messages.Alternatively, the same embodiments may display either lists of messagesor lists of conversations, in accordance with user instructions,user-selectable configuration options or query parameters in a receivedquery. Some of the disclosed embodiments use searches to identifyconversations to be listed in a plurality of distinct views of theconversations in a user's email account. However, other features of thedisclosed embodiments use messages as the basic unit of information.

Index 142 is configured to enable the execution of both message-basedsearch queries and conversation-based search queries. Any combination ofsearchable terms can be used in a search query. As mentioned above,searchable terms could include the text of the messages, any labelsassociated with the messages, conversations, or header informationassociated with a message. In some circumstances, the search query is amessage-based query and searches are run against individual messages. Insome other circumstances, the search query is a conversation-based queryand searches are run against conversations as a whole rather thanagainst individual messages. In some circumstances, the search queryincludes one or more message-based components and one or moreconversation-based components, in which case the message basedcomponents are run against individual messages while the conversationbased components are run against conversations as a whole rather thanagainst individual messages.

For conversation-based queries or conversation-based query components,when a query requires both first and second query terms, one of which isfound in a first message and the other which is found in a secondmessage of the same conversation, the conversation will be considered tobe relevant to the query, and thus included in the search results. Forexample, consider a conversation in which the first message solicitedideas for a lunch location and a subsequent message, while naming aparticular restaurant, did not include the text of the original message.If a user was interested in finding that conversation in which theparticular restaurant and lunch were discussed, then the search is morelikely to produce the desired result if it were applied against thecontent of the entire conversation. In some implementations, a datastructure (e.g., Index 142 in FIG. 4C that includes informationcorresponding to Simulated Data Structure 422, FIG. 4B) which matchesterms in a conversation to a representative message of the conversationis maintained. If such implementations, conversations as a whole thatmatch the search query are identified as matching conversations.Optionally, the number of conversations to return as the result set islimited to a predefined number. If so, then processing of the querycontinues until a sufficient number of conversations are identified andthe results returned. Alternatively, all of the conversations associatedwith the set of messages returned are identified, but only a subset arereturned as the result set.

In contrast, for message-based queries or message-based querycomponents, when a query requires both first and second query terms, oneof which is found in a first message (but not in the second message) andthe other which is found in a second message (but not in the firstmessage), neither the first nor second message is considered relevant tothe query even if the first message and the second message areassociated with the same conversation. Rather, only messages thatinclude both the first and second query terms will be included in thesearch results. For example, if a user is looking for a message from aparticular sender that discusses “Tahoe,” the user only wants to findmessages that include both the particular sender and the term “Tahoe”and is unlikely to be interested in conversations where the particularsender sent a first message and a different sender used the term “Tahoe”in a second message.

Typically, after a search query has been executed over Index 142,operations are performed to retrieve message date and/or conversationdata for generating search results. For a message-based query, typicallyonly message data needs to be retrieved, and thus the message data canbe retrieved by performing operations 642-650 (FIG. 6B). However, for aconversation-based query typically both message data and conversationdata need to be retrieved and thus operations 656-676 (FIG. 6C) areperformed to retrieve conversation data. Thus, in accordance with adetermination that the search query is (636) a conversation-basedqueries or includes conversation-based query components, operations656-676 are performed at Server 106, as described in greater detailbelow. In contrast, in accordance with a determination that the searchquery is (638) a message-based query or includes message-based querycomponents, Server 106 uses the identified Message ID(s) to retrieve(642) message information (e.g., header information, label information,content, attachments, etc.) from Message Database 136 for a message ofat least a subset of the matching messages.

After retrieving the message information for a respective message, ifthere are (644) more matching messages in the subset of matchingmessages, Server 106 repeats the process. In contrast, if messageinformation has been retrieved for all of the messages in the subset ofmatching messages and there are not (646) any more matching messages,Server 106 generates and optionally formats (648) search results for thesearch query. After search results have been generated, the searchresults are transmitted (650) to Client 102 (e.g., display informationincluding instructions for displaying a list of representations ofmessages are transmitted to Client 102). Client 102 receives (652) thesearch results or display information and typically displays the searchresults or a subset of the search results to a user of Client 102.Exemplary user interfaces for displaying search results and messages ata Client 102 (e.g., in accordance with display instructions from Server106) in response to a message-based query are described in greaterdetail below and illustrated in FIGS. 12A-12B.

However, when the query is a conversation-based query or includes aconversation-based component, for the one or more matching MessageID(s), Server 106 retrieves (656) corresponding Conversation ID(s) fromMessage to Conversation Map 140. The retrieved Conversation ID(s) areused by Server 106 to retrieve (658) conversation information associatedwith at least a subset of the retrieved Conversation ID(s) fromConversation Database 138. In some embodiments, the conversationinformation can be used to generate a list of conversations matching thesearch query without retrieving any message information. For example, ifthe conversation information includes a list of participants, a numberof messages, and a subject or snippet of relevant text for theconversation, Server 106 uses this conversation information to generaterepresentations of the conversations for display at Client 102.Alternatively, or in addition, the conversation information for arespective conversation includes one or more Message IDs, which are usedto retrieve (662) message information from Message Database 136 formessages associated with the respective conversation.

After message information for a respective message has been retrieved,if there are (664) more messages in the respective conversation, Server106 retrieves message information for a next message. However, if thereare not (668) any more messages in the respective conversation, Server106 determines whether there are any more matching conversations. Ifthere are (670) more matching conversations, Server 106 retrievesconversation information for a next matching conversation and,optionally, message information for the messages of that conversation,by repeating the operations described above. However, if there are not(672) any more matching conversations, Server 106 generates andoptionally formats (674) search results for the search query. Aftersearch results have been generated, the search results are transmitted(676) to Client 102 (e.g., information indicative of the search results,such as a list of representations of conversations, and optionallyincluding instructions for displaying the list of representations ofconversations, is transmitted to Client 102). Client 102 receives (652)the search results or information enabling display of search results andtypically displays the search results or a subset of the search resultsto a user of Client 102. Exemplary user interfaces for displaying searchresults and conversations at a Client 102 (e.g., in accordance withdisplay instructions from Server 106) for a conversation-based query aredescribed in greater detail below and illustrated in FIGS. 11A-11F.

It should be understood that the particular order in which theoperations in FIGS. 6A-6C have been described are merely exemplary andare not intended to indicate that the described order is the only orderin which the operations could be performed. One of ordinary skill in theart would recognize various ways to reorder the operations describedherein. Additionally, it should be noted that details of other processesdescribed herein with respect to methods 700, 800, 900 and 1000 (e.g.,FIG. 7A-7G, 8A-8D, 9A-9D or 10A-10E respectively) are also applicable inan analogous manner to method 600 described above with respect to FIGS.6A-6C. For example, the conversations, messages and data structures(e.g., databases tables, maps, indexes, etc.) described above withreference to method 600 may have one or more of the characteristics ofthe various conversations, messages and data structures (e.g., databasestables, maps, indexes, etc.) described herein with reference to methods700, 800, 900 and 1000. For brevity, these details are not repeatedhere.

FIGS. 7A-7G include a flowchart representing a method 700 for generatingan index configured to support both conversation and message basedsearching, according to certain embodiments. Method 700 may be governedby instructions that are stored in a non-transitory computer readablestorage medium and that are executed by one or more processors of one ormore servers, such as in conversation server system 106 (as illustratedin FIGS. 1 and 3). Each of the operations shown in FIGS. 7A-7G maycorrespond to instructions stored in a computer memory or computerreadable storage medium. The computer readable storage medium mayinclude a magnetic or optical disk storage device, solid state storagedevices such as Flash memory, or other non-volatile memory device ordevices (for example, devices in memory 306 of conversation serversystem 106). The computer readable instructions stored on the computerreadable storage medium may include one or more of: source code,assembly language code, object code, or other instruction format that isexecuted or interpreted by one or more processors. Some operations inmethod 700 may be combined and/or the order of some operations may bechanged.

Conversation Server System 106 stores (702) a plurality of index entriesin an index (e.g., Index 142 in FIGS. 1, 3 and/or 4C). A respectiveindex entry (e.g., 430 in FIG. 4C) stored in the index corresponds to arespective term and has a plurality of index components, and arespective index component of the respective index entry identifying amessage that is associated with the respective term, as described ingreater detail above with reference to FIG. 4C.

Server 106 receives (704) a first message (e.g., a new message from aConversation Client System 102 or Other Message Server System 108). Insome embodiments, the first message is (706) the most recent message inthe conversation (e.g., the new message is the message, in aconversation with multiple messages, that has the latest date/timestamp). After receiving the first message, Server 106 associates (707)the first message with a conversation having at least one other message,thereby creating a conversation including at least two messages (i.e.,data structures representing the preexisting conversation are updatedwith information for the first message).

As described in greater detail above with reference to FIG. 6A, after amessage is received, various data structures are updated to reflect thereceived message. In method 700, Server 106 stores (708), in the index(e.g., an index for the user to whom the message was sent), a pluralityof first-message index components that each include an identifier of thefirst message. One or more of the first-message index components areindicative of a plurality of message terms in the first message.Additionally, when the first message is associated with a conversationhaving at least one other message with terms that are not included inthe first message, one or more of the first-message index components areindicative of one or more conversation terms in the conversation, theone or more conversation terms include one or more terms that are not inthe first message. However, in some implementations, if the conversationincludes only one message (e.g., the first message is associated with anew conversation) or if the earlier messages contain only the same termsin the same order as in the new message, no index componentscorresponding to conversation terms are stored in the index. Thus, whenthe first message is associated with a conversation having at least oneother message having terms that are not included in the first message,the first message is indexed in such a way that what is indexed is asimulated data structure (e.g., 422 in FIG. 4B) for the first message,where the simulated data structure includes both terms that occur in thefirst message as well as terms that occur in the conversation associatedwith the first message that are not included in the first message. Insome embodiments, the terms include (710) one or more of: text contentterms, labels, tags, and header information (e.g., subject, sender,recipients, date/time, etc.), as described in greater detail above.

In some embodiments, the one or more conversation terms include one ormore terms that occur in both the first message and a second message inthe conversation other than the first message. In other words, theconversation terms include terms that occur in both the representativemessage and other messages in the conversation. In some embodiments, theone or more conversation terms include a plurality of terms that occurin both the first message and a second message in the conversation otherthan the first message, the plurality of terms occur in a first order inthe first message; and occur in a second order, different from the firstorder, in the second message. In other words, in these embodiments termsthat occur in both the representative (first) message of a conversationand another (second) message of the conversation are repeated in theindex (represented as both message terms and conversation terms) whenthe terms occur in a different order in the representative message thanin the other message. In contrast, in some embodiments, if a term in therepresentative message is part of a block of quoted text that was copiedfrom original text in the other message, the terms in the quoted textare not indexed as message terms, as these terms have already beenindexed as conversation terms corresponding to the original text in theother message in the conversation.

In some embodiments, Server 106 (or Quoted Text Module 326 in FIG. 3)identifies (712) the quoted text of the first message by comparing textof the first message to text of other messages in the conversation(e.g., other messages in the conversation that have an earlier time/datethan the first message). A variety of methods for identifying blocks oftext from a previous message that are repeated in the first message asquoted text are well known in the art and will not be discussed infurther detail here, for brevity. In some embodiments, in circumstanceswhere quoted text has been identified in the first message, the one ormore first-message index components include (714) one or more indexcomponents indicative of message terms in original text in the firstmessage (e.g., text that is not quoted text) and one or more indexcomponents indicative of message terms in quoted text of the firstmessage. The index components indicative of message terms in the quotedtext of the first message are distinguished, in the index, from theindex components indicative of message terms in the original text of thefirst message. For example, the index components indicative of terms inthe quoted text may be distinguished from message components indicativeof terms in the original text by a set of high order bits (e.g., “00”for original text and “01” for quoted text, as illustrated in theexemplary Simulated Data Structure 422 and Index 142 in FIGS. 4B-4C).

In some embodiments (e.g., index-size-reducing implementations,discussed above), the first-message index components corresponding tomessage terms include (716) index components representing each messageterm that occurs in the first message and the first-message indexcomponents corresponding to conversation terms include only indexcomponents corresponding to terms that do not occur in the firstmessage. Further, while all of the message terms in the first messageare indexed for the first message, only a subset of the conversationterms for other messages in the conversation associated with the firstmessage are indexed, so that blocks of terms that occur repeatedly inthe conversation (e.g., blocks of quoted text that are quoted fromearlier messages in the conversation) are not indexed repeatedly.Typically, the subset of conversation terms would be selected so thateach unique conversation term is represented by at least one indexcomponent for the first message.

Thus, in some of these embodiments, for a first term that occursmultiple times in the first message, a plurality of distinctfirst-message index components are stored (718) in an index entry forthe first term in the index, each first-message index componentrepresenting a respective occurrence of the first term in the firstmessage (e.g., if the term “dinner” occurs three times in the firstmessage, there will be three index components associated with the firstmessage in the index for the term “dinner” in the first message). Incontrast, for a second term that occurs multiple times in messages inthe conversation other than the first message, a single first-messageindex component is stored (720) in an index entry for the second term inthe index, the single first-message index component representing alloccurrences of the second term in the messages in the conversation otherthan the first message (e.g., if the term “dinner” occurs three times inmessages other than the first message in a conversation, there will be asingle index component associated with the first message in the indexfor the term “dinner” in the other messages). Alternatively, theconversation terms could include each occurrence of a term in theconversation, however, this would require a large amount of storageresources for conversations with multiple messages.

Similarly, in some embodiments, in accordance with a determination thata same logically complete text string (e.g., a word, a sentence, aparagraph, or a previously identified block of quoted text, etc.) occursin the first message and in the at least one other message in theconversation, Server 106 stores (722) in the index, first-message indexcomponents that correspond to the occurrence of the terms in thelogically complete text string in the first message and forgoes storageof first-message index components that correspond to the occurrence ofthe terms in the logically complete text string in the at least oneother message in the index. In other words, if a block of text isalready included in quoted text, then it only needs to be indexed oncefor the first message. Because many messaging systems automaticallyquote large blocks of previous messages, avoiding repeatedly indexingidentical blocks of text that occur in the same conversation cansignificantly reduce the processing and storage resources that arerequired for storing and retrieving information in the index for theconversation.

In some embodiments, a respective index component indicative of aconversation term includes (726) a value (e.g., a set of one or morehigh order bits such as “11” in FIGS. 4B-4C) identifying the respectiveindex component as being associated with a conversation term.Alternatively a flag bit or other metadata could be used to identify arespective index component as being associated with a conversation term(e.g., as opposed to being associated with a message term).

In some embodiments, a respective index component indicative of aconversation term includes (728) a mapped location that corresponds toan original location of the conversation term in the conversation. Forexample, when the original location is a location in a message of theconversation other than the first message, the mapped location can be a“virtual location” that is associated with the first message. In someembodiments, this mapped location of the respective index componentindicative of the conversation term is in (730) a predefined range oflocations associated only with conversation terms. For example, themapped location may correspond to a location within a predefinedpartition of a simulated data structure (e.g., 422 in FIG. 4B) that isdesignated for conversation terms.

In some embodiments, in the index, the one or more index componentsindicative of the message terms are (732) distinguished from the one ormore index components indicative of the conversation terms. In someimplementations of these embodiments, the one or more index componentsindicative of the plurality of message terms are distinguished from theone or more index components indicative of conversation terms bypartitioning (734) an address space for the first message, as describedin greater detail above with reference to FIGS. 4B-4C. Additionally, insome implementations, Server 106 partitions (736) the address space forthe first message using a set of one or more high order address bits tospecify partitions, as described in greater detail above with referenceto FIGS. 4B-4C.

In some embodiments, Server 106 stores, (738) in the index, afirst-message index component that identifies the first message as arepresentative message of the conversation. For example, in someimplementations, a special label is used by Server 106 to trackrepresentative messages of conversations, by assigning the specialrepresentative-message label (e.g., via a special ^th label) to eachrepresentative message. See discussion of FIG. 4C, above, with respectto representative-message labels. Typically, there will be only onerepresentative message per conversation. When the first message is therepresentative message for a particular conversation, the index includesfirst-message index components representing all of the terms in theconversation, or all of the text content terms in the conversation(including both terms in the first message and terms in other messagesin the conversation), so that a Boolean search in the index will be ableto determine whether or not the conversation associated with the firstmessage includes all of the search query terms by determining whetherthe index includes first-message index components that match the searchquery. By identifying a single message in each conversation as therepresentative message of that conversation, and adding first-messageindex components for terms in all of the messages in the conversation,Server 106 is able to perform conversation-based or message-basedsearches by either searching only representative conversations (e.g.,for conversation-based searches) or searching only message terms (e.g.,for message-based searches), as described in greater detail below withreference to method 900.

In some embodiments, Server 106 receives (740) a second messagesubsequent to receiving the first message and associates (742) thesecond message with the same conversation as the first message, asdescribed in greater detail above with reference to FIG. 6A. It shouldbe understood that the following operations are performed only when thesecond message has a date/time that is later than the date/time of thefirst message (e.g., when the second message is more recent than thefirst message). After receiving the second message, Server 106 stores,(744) in the index, one or more second-message index components thateach include an identifier of the second message. The second-messageindex components include one or more index components indicative of aplurality of message terms in the second message and one or more indexcomponents indicative of one or more conversation terms in theconversation, the one or more conversation terms including one or moreterms that are not in the second message (e.g., one or more terms fromthe first message that do not occur in the second message). In someimplementations, the second-message index components also include anindex component identifying the second message as the representativemessage of the conversation. In conjunction with adding the indexcomponent identifying the second message as a representative message,Server 106 removes (746) from the index the first-message indexcomponent that identifies the first message as the representativemessage of the conversation. In other words, only one message at a timein each conversation is identified as the representative message of theconversation, so that Server 106 can use the label that identifies therepresentative messages of the conversation to determine which messagesto search when executing a conversation-based search over the index.

In some embodiments, after receiving the second message and, optionally,after storing in the index the one or more second-message indexcomponents indicative of one or more terms in the conversation that arenot in the second message, Server 106 removes (748) from the index theone or more first-message index components indicative of conversationterms. In other words, in these embodiments, index components for thefirst message that correspond to conversation terms are removed from theindex when the first message is no longer the representative message forthe conversation. As the first message is no longer a representativemessage, the first-message index components corresponding toconversation terms are not needed to execute conversation-based queries(instead, second-message index components corresponding to conversationterms serve this purpose). While there is some possibility that thefirst message will become a representative message again, this wouldtypically only happen if the second message and all other messages inthe conversation that are more recent than the first message were to bedeleted, which is not a situation that will occur frequently undernormal use. Removing the unneeded first-message index components reducesthe size of the index, thereby improving speed and efficiency ofexecuting search queries. However, in some implementations, because suchconsiderations only impact performance and not accuracy of the search,the removal of unneeded index components is given lower priority thanother tasks, such as search execution and new message processing. Thus,Server 106 may issue commands to create new second-message indexcomponents for conversation terms and remove old first-message indexcomponents at the same time or substantially the same time (e.g., inresponse to receiving the second message). However, in theseimplementations, even when these commands are issued at the same time,the operations removing the first-message index components are givenlower priority and thus may be performed when the system has greaterfree processing capacity (e.g., during off-peak usage times, such as themiddle of the night).

While in the embodiments described above, the unneeded index componentsare actively removed, in other embodiments, the unneeded indexcomponents are passively removed in the process of a regularly scheduledregeneration of the index. For example, if the messages andconversations for a user are re-indexed once a week and only thenecessary index components are included in the index when the data isre-indexed, then unneeded index components will be effectively removedwhenever the index is regenerated without any active procedures foridentifying and deleting the unneeded index components. If re-indexingoccurs relatively frequently, this passive approach may be moreefficient than actively removing unneeded index components. In otherembodiments, the first-message index components are retained when thecost (e.g., processing, storage, etc.) of retaining unneeded indexcomponents is determined to be less than the cost of removing theunneeded index components.

In some embodiments, the most recent message in a conversation is usedas the representative message without regard to the order in which themessages in the conversation were received at Server 106. In theseembodiments, when Server 106 receives a second message (e.g., fromClient 102 or a respective Other Message Server System 108) that is aprior message in the conversation (e.g., the prior message is a messagethat was sent at a time that is earlier than a time that the firstmessage was sent because the second message was delayed in transit orbecause the second message was associated with the conversation manuallyby the user or for some other reason), the second message is not used asthe representative message. After receiving the second message that is aprior message, Server 106 associates the second message with theconversation and stores, in the index, one or more second-message indexcomponents that each include an identifier of the second messageincluding one or more index components indicative of a plurality ofmessage terms in the second message. However, in some implementations,because the second message is a prior message and is not the most recentmessage in the conversation, the first message remains therepresentative message for the conversation. Thus, Server 106 updatesthe conversation terms associated with the first message rather thanstoring conversation terms associated with the second message. Inparticular, Server 106 stores, in the index, one or more first-messageindex components that each include an identifier of the first messageincluding one or more index components indicative of a plurality ofmessage terms in the second message that are identified as conversationterms. Alternatively, in other embodiments, the last received messagecould be used as a representative message without regard to whether thelast received message is the most recent message in the conversation.

In some embodiments, Server 106 stores (750) a plurality of messagesassociated with a plurality of conversations. Each conversation in thisplurality of conversations includes a respective representative message.Typically, for a conversation with a plurality of messages, one of themessages is selected and identified as a representative message. Forconversations with a single message, the single message is therepresentative message. In some embodiments, for convenience, all of therepresentative messages are marked with a common label (e.g., arepresentative-message label, as described in greater detail above). Foreach conversation, a respective property of the conversation comprises(752) a corresponding property of the representative message of theconversation. Subsequently, when a list of conversations is prepared assearch results, Server 106 sorts or filters (754) the list ofconversations in accordance with the respective property. The propertycould be a date/time stamp or other time indicator; a subject/snippetthat is representative of the content of the representative message; arecipient list, etc. As one example, a list of conversations is producedas search results for a search query (e.g., as illustrated in FIG. 11B)and the conversations in the list are sorted in date/time order frommost recent to least recent based on a date/time associated with therespective representative messages of the conversations. Thus, theconversations would be sorted based on a date/time of the most recentmessage rather than a date/time of the earliest message of theconversation.

In some embodiments, each conversation includes (756) a respectiverepresentative message. Server 106 receives (758) a search query from aclient and identifies (760) one or more conversations that match thesearch query. A general description of responding to a search query isprovided above with reference to FIGS. 6B-6C. More specifically, inmethod 700, after identifying the conversations that match the searchquery, Server 106 sends (762) to the client information enabling displayof search results including representations of at least a subset of theconversations that match the search query, as shown in the exemplaryuser interface described in greater detail below with reference to FIG.11B. The representations of conversations, also called conciseconversation headers, are sorted in accordance with one or moreproperties (e.g., date/time, monotonically assigned Message ID that isassigned in the order in which messages are received by Server 106,etc.) of the respective representative messages of correspondingconversations. In some embodiments, the Message ID of the oldest messagein a conversation is used as at least a portion of the Conversation IDfor the conversation.

In some embodiments, after storing in the index the one or morefirst-message index components indicative of the one or moreconversation terms in the conversation, Server 106 detects (764) amodification of a respective message of the one or more other messagesin the conversation. In response to detecting the modification, Server106 updates (766) the one or more first-message index componentsindicative of the conversation terms that are stored in the index inaccordance with the modification of the respective message. In somesituations, the detected modification includes adding (768) a first term(e.g., adding a label) to the respective message; and the updatingincludes adding a new first-message index component indicative of thefirst term (e.g., label) to the index. In other situations, themodification includes removing (770) a second term (e.g., deleting thelabel) from the respective message; and the updating includesconditionally removing a first-message index component indicative of thesecond term (e.g., label) from the index, the condition being that thereare no other instances of the second term remaining in the conversation.

In some embodiments, Server 106 removes (772) a respective message otherthan the first message from the conversation. For example, a message maybe removed from a conversation in response to a request from Client 102to delete or disassociate the message from the conversation. Afterremoving the respective message, Server 106 removes (774) from the indexone or more first-message index components indicative of one or moreconversation terms that occurred in the respective message. In someembodiments, the index components that are removed include onlyfirst-message index components corresponding to terms that occurred onlyin the respective removed message but not in other messages of theconversation.

In some embodiments, if a message has been marked for deletion by theuser but not removed from the system (e.g., a deleted message), thefirst-message index components corresponding to terms in the deletedmessage are maintained in the index, but the deleted message is notdisplayed to the user in the conversation view. Instead, in order totrack messages that are deleted or marked for deletion, labels of themessages may be modified. For example a label indicating that themessage is an active message may be removed from the message and/or acorresponding index component may be removed from the index. As anotherexample, a label indicating that the message has been “marked fordeletion” may be added to the message and/or a corresponding index entrymay be added to the index. Thus, if the deleted message matches a searchquery (or, in combination with other messages in the conversationmatches a search query) then the conversation would still be returned,but Server 106 will prevent the deleted message from being displayed inaccordance with a label that indicates that the message has been markedfor deletion or is no longer an active message. In some embodiments,where messages marked for deletion are not displayed, Server 106provides Client 102 with display information enabling Client 102 todisplay an indicator that the conversation includes one or more deletedmessages so as to alert the user that there are one or more deletedmessages that may match the search query terms.

In some embodiments, Server 106 stores (776) in the index a respectiveindex entry corresponding to a predefined term (e.g., an“active-message” label), where the respective index entry correspondingto the predefined term includes a plurality of index componentscorresponding to respective messages of a plurality of messages (e.g.,all messages stored at the server that are not spam and have not beendeleted), and the predefined term is an indicator that the respectivemessages have been marked as active messages (e.g., a message that isneither spam nor a message marked for deletion). In response to arequest to ignore a particular message in the plurality of messages,Server removes (778) the respective index component corresponding to theparticular message from the index entry corresponding to the predefinedterm. In other words, the “active-message” label (which could also betermed a “not spam/not trash” label) is added by Server 106 to everymessage (e.g., as it is received) and removed from messages that areflagged as trash and/or removed from or not added to messages that areflagged as spam. Thus, the respective representative message for anyconversation with at least one non-spam non-trash message will have the“active-message” label because the representative message for aconversation inherits at least one copy of each label associated with amessage in the conversation. Consequently, conversations including no“active” messages (e.g., conversations including only messages markedfor deletion or marked as spam) will not be returned as search resultsunless the search is search for deleted messages, or spam flaggedmessages. On the other hand, in some embodiments, conversations thatinclude at least one “active” message (e.g., a message that is notmarked for deletion or identified as spam) can still be returned assearch results, even if some or all of the other messages (even matchingmessages) in the conversation have been marked for deletion oridentified as spam.

A retention policy may be specified by a user or an organization andindicates how long messages and/or conversations are retained. Manyorganizations have a policy that all communications are deleted after apredefined time period (e.g., 30 days, 2 years, etc.) has passed sincethe communication was sent or received. In some circumstances retentionpolicies are adjusted on a per message basis. For instance, in someorganizations when a litigation matter is pending all writtencommunications relevant to the litigation matter will be retained forthe duration of the litigation matter. Individual “retention policy”labels may be used to identify all messages and/or conversations towhich a particular set of retention policies are to be applied. In someembodiments, the retention policy is only applied to the particularmessage to which the corresponding retention policy label has beenapplied. In some embodiments, Server 106 stores (780) in the index arespective first-message index component indicative of a retentionpolicy for a respective message in the conversation, and Server 106applies (782) the retention policy to all messages in the conversationassociated with the first message. In some embodiments, whether theretention policy is applied to the particular message or all of themessages in the conversation depends on whether the user who added theinformation indicative of the retention policy interacts with themessage separately or as part of the conversation (e.g., whether theclient used by the user displays messages in “message view mode” asillustrated in FIGS. 12A-12B or in “conversation view mode” asillustrated in FIGS. 11A-11F).

In some embodiments, a user of a client may interact with messages usingeither a message view mode or a “conversation view mode.” In theseembodiments, when in a “conversation view mode,” conversations (e.g.,groups of associated messages) are treated as the primary unit ofinformation (e.g., search results return a list of conversationsmatching the search query, and whenever a conversation is opened all ofthe messages associated with the conversation are displayed, asillustrated in FIGS. 11A-11F), while when in “message view mode,”messages are treated as the primary unit of information (e.g., searchresults return a list of messages matching the search query, andwhenever a message is only the message is displayed, as illustrated inFIG. 12A-12B). Display information provided by Server 106 enabling aclient to display messages may be different depending on whether a userof the client has indicated a desire to operate in “conversation viewmode” or “message view mode.” Alternatively, Server 106 may provide thesame display information to a requesting client without regard towhether a user of the requesting client has indicated a desire tooperate in “conversation view mode” or “message view mode,” and therequesting client may manipulate the display information based on theindication provided by the user.

In some embodiments a user may decide on a per session basis whether todisplay content in “conversation view mode” or “message view mode.”Alternatively, a Server 106 may enable only “conversation view mode” oronly “message view mode” at particular clients. However, when these twodifferent modes exist, it may be advantageous to treat labels added in“conversation view mode” differently from labels added in “message viewmode.” For example, a retention policy label added to a message while in“conversation view mode” may be applied to the entire conversationassociated with the message. However, when the retention policy label isapplied to the message while in “message view mode,” the retentionpolicy is applied to only the message and not the entire conversationassociated with the message.

Even in embodiments where conversations can be viewed in both“conversation view mode” and “message view mode,” using the exemplarydata structures described herein, index components indicative of thelabels are stored in same data structure and/or indexed in the sameindex without regard to whether the labels were added in “conversationview mode” or “message view mode.” Thus the messages can be madeavailable in either mode, and the index does not need to be duplicatedfor conversation based interactions.

In some embodiments, the first-message index components corresponding tomessage terms include index components representing each message termthat occurs in the first message; and the first-message index componentscorresponding to conversation terms include only index componentscorresponding to terms that do not occur in the first message, asdescribed in greater detail above (e.g., embodiments where only a subsetof the terms in the messages other than the representative message areindexed as conversation terms). In some of these embodiments, Server 106receives (784) a search query including multiple query terms and atleast one location-constrained query term set including a plurality ofquery terms having location and/or order constraints. In response to thesearch query, Server 106 executes (786) a Boolean search for candidateconversations that include all query terms in the query and alsoexecutes a search within the candidate conversations to remove candidateconversations that do not include at least one message satisfying eachof the location-constrained query term sets. Thus, in these embodimentsa search query is performed in two stages. In a first stageconversations including the searched for terms are identified and in thesecond stage conversations that do not include the terms in the properorder or location are removed from the set of matching conversations.This embodiment enables location-constrained queries to be performedeven when first-message index components do not preserve an order and/orrelative location of terms in the conversation.

It should be understood that the particular order in which theoperations in FIGS. 7A-7G have been described are merely exemplary andare not intended to indicate that the described order is the only orderin which the operations could be performed. One of ordinary skill in theart would recognize various ways to reorder the operations describedherein. Additionally, it should be noted that details of other processesdescribed herein with respect to methods 600, 800, 900 and 1000 (e.g.,FIG. 6A-6C, 8A-8D, 9A-9D or 10A-10E respectively) are also applicable inan analogous manner to method 700 described above with respect to FIGS.7A-7G. For example, the conversations, messages and data structures(e.g., databases tables, maps, indexes, etc.) described above withreference to method 700 may have one or more of the characteristics ofthe various conversations, messages and data structures (e.g., databasestables, maps, indexes, etc.) described herein with reference to methods600, 800, 900 and 1000. For brevity, these details are not repeatedhere.

FIGS. 8A-8D include a flowchart representing a method 800 for separatelyindexing quoted text in messages in conversations to support advancedconversation-based searching, according to certain embodiments. Method800 may be governed by instructions that are stored in a non-transitorycomputer readable storage medium and that are executed by one or moreprocessors of one or more servers, such as in conversation server system106 (as illustrated in FIGS. 1 and 3). Each of the operations shown inFIGS. 8A-8D may correspond to instructions stored in a computer memoryor computer readable storage medium. The computer readable storagemedium may include a magnetic or optical disk storage device, solidstate storage devices such as Flash memory, or other non-volatile memorydevice or devices (for example, devices in memory 306 of conversationserver system 106). The computer readable instructions stored on thecomputer readable storage medium may include one or more of: sourcecode, assembly language code, object code, or other instruction formatthat is executed or interpreted by one or more processors. Someoperations in method 800 may be combined and/or the order of someoperations may be changed.

Conversation Server System 106 stores (802) a plurality of index entriesin an index (e.g., Index 142 in FIGS. 1, 3 and/or 4C). A respectiveindex entry (e.g., 430 in FIG. 4C) corresponds to a respective term andincludes a plurality of index components, a respective index componentof the respective index entry identifies a message that is associatedwith the respective term.

Server 106 receives (804) a first message (e.g., from a ConversationClient System 102 or Other Message Server System 108). After receivingthe first message, Server 106 associates (806) the first message with aconversation having one or more other messages and identifies (808) textin the first message as quoted text. In some embodiments, the quotedtext is identified in the first message based on text that occurs in oneor more of the other messages associated with the conversation. In otherwords, in these embodiments, the quoted text is not determined merely bylooking for conventional quoted text indicators such as “>>” or metadataindicating that a particular block of text is quoted text. A variety ofmethods for identifying blocks of text from a previous message that arerepeated in the first message as quoted text are well known in the artand will not be discussed in further detail here, for brevity. Howeverin other embodiments, one or more conventional approaches to identifyingquoted text in messages (e.g., quoted text indicators and/or metadataidentifying quoted text, etc.) are used instead of, or in addition to,the approaches described above for identifying quoted text in messages.

An advantage of comparing messages to determine quoted text, asdescribed in some of the embodiments above, in addition to or instead ofusing quoted text indicators or metadata identifying quoted text, isthat text identified as quoted text using quoted text indicators ormetadata may not actually be repeated elsewhere in the conversation(e.g., because quoted text indicators were added in error, the messagefrom which the text was quoted is not included in the conversation, orthe message from which the text was quoted was deleted from theconversation). Thus, identifying quoted text at least in part bycomparing messages ensures that only quoted text that actually occurs ina prior message is identified as quoted text. Similarly, quoted text ina conversation may not include quoted text indicators, and thusidentifying quoted text by comparing messages will identify quoted textthat would be missed if other methods of identifying quoted text wereused.

In some embodiments, identifying quoted text in the first messageincludes comparing (810) text in the first message to text from a priormessage in the conversation, identifying (812) matching text in theprior message, and identifying (814) the matching text as quoted text.It should be understood that, as used herein, a prior message is amessage that was sent at a time that is earlier than a time that thefirst message was sent (e.g., a prior message has an earlier date/timestamp than the first message). It should be noted that the matching textwill be quoted text in the first message but may be either original textor quoted text in the prior message (e.g., depending on whether or notthe matching text was originally introduced in the prior message or insome other earlier message). In some embodiments, the text of the firstmessage is compared with text of multiple messages with earlierdate/time stamps. In other embodiments, the text of the first message isonly compared with a predefined number of messages with earlierdate/time stamps (e.g., the message in the conversation that isimmediately prior to the first message).

As described in greater detail above with reference to FIG. 6A, after amessage is received, various data structures are updated to reflect thereceived message. In method 800, after identifying the quoted text,Server 106 stores (816) in the index, a plurality of first-message indexcomponents that each include an identifier of the first message. One ormore of the first-message index components correspond to terms thatoccur in original text of the first message. Additionally, one or moreof the first-message index components correspond to terms in the firstmessage that occur in the quoted text of the first message, and in theindex, the first-message index components that correspond to terms thatoccur in original text of the first message are distinguished from thefirst-message index components that correspond to terms in the firstmessage that occur in the quoted text of the first message. In someembodiments, the first message is indexed in such a way that a simulateddata structure (e.g., 422 in FIG. 4B) for the first message identifiesboth original text and quoted text within the first message. In someembodiments, the terms include one or more of: text content terms,labels, tags, and header information. (e.g., subject, sender,recipients, date/time, etc.), as described in greater detail above.

Typically, an index entry for a respective term indicates locations ofthe respective term in quoted text of a message and locations of theterm in original text (which could also be referred to as non-quotedtext) of the message. The index entry for the respective term includesinformation that distinguishes the index components corresponding toquoted text from the index components corresponding to non-quoted text.In some embodiments, a respective index component for a particular termin the quoted text includes (818) a value identifying the respectiveindex component as being associated with the quoted text. In someembodiments, a respective index component for a particular term in thequoted text includes (820) a mapped location that corresponds to anoriginal location of the particular term in the quoted text. In someembodiments, the mapped location of the particular term is in (822) apredefined range of locations associated only with terms in the quotedtext (e.g., locations in a partition with one or more high order addressbits identifying quoted text). For example, the first-message indexcomponents for terms in the quoted text may include a predefinedquoted-text marker (e.g., a set of one or more high order address bitssuch as “01”) that is independent of the terms in the quoted text and isalso independent of the length and content of the first message, wherefirst-message index components for terms in the original text include adifferent predefined original text marker (e.g., a set of one or morehigh order address bits such as “00” as illustrated in FIGS. 4B-4C). Insome embodiments, the predefined quoted-text marker is included in theindex component for each term of the quoted text.

In some embodiments, in the index, the one or more index componentsindicative of the terms that occur in original text of the first messageare distinguished from the one or more index components indicative ofterms in the first message that occur only in the quoted text of thefirst message by partitioning (824) an address space for the firstmessage, as described in greater detail above with reference to FIGS.4B-4C. Additionally, Server 106 may partition (826) the address spacefor the first message using a set of one or more high order address bitsto specify partitions, as described in greater detail above withreference to FIGS. 4B-4C.

Server 106 may receive (828) a request for the first message from aclient. In some embodiments, in response to the request, Server 106sends (830) to the client a portion of the first message that excludesat least a portion of the quoted text (e.g., the quoted text is elidedform the first message). In some embodiments, even if quoted text is notsent to the client, a user can request the quoted text. For example,Server 106 may send the quoted text to the client in response todetecting selection of a “show quoted text” link by the user (e.g., 1152in FIG. 11E). Additionally, when Server 106 receives (832) a request forthe conversation including the first message from a client, in someembodiments, in response to the request, Server 106 sends (834)information to the client enabling the client to display a portion ofthe first message that excludes the quoted text and at least a portionof a second message in the conversation that includes the quoted text,as shown in the exemplary user interface described in greater detailbelow with reference to FIG. 11E. For example, in a conversation with afirst message that includes a block of quoted text from a second messageas original text, the conversation would include both the first messagewithout the quoted text and the second message with the original textthat was quoted in the quoted text of the first message.

In some embodiments, after identifying quoted text in the first messageServer 106 receives (836) a second message (e.g., from Client 102 or arespective Other Message Server System 108) that is a prior message inthe conversation (e.g., the prior message is a message that was sent ata time that is earlier than a time that the first message was sent).After receiving the second message, Server 106 associates (838) thesecond message with the conversation and updates (840) the quoted textin the first message based on the text that occurs in the secondmessage. For example, a message sent prior to the first message may beassociated with the conversation including the first message after thefirst message is associated with the conversation (e.g., because thesecond message was delayed in transit or because the second message wasassociated with the conversation manually by the user or for some otherreason), and thus additional quoted text may be identified in the secondmessage that was quoted in the first message. When this additionalquoted text is identified, first-message index components for terms inthe newly identified quoted text of the first message are updated toindicate that the terms are in quoted text of the message.

Server 106 may receive (e.g., from a Client 102) a request to delete arespective message that is a prior message in the conversation in aconversation (e.g., the prior message is a message that was sent at atime that is earlier than a time that the first message was sent). Inresponse to the request to delete the respective message, Server 106deletes (842) the respective message. In some embodiments, upon deletingthe respective message, Server 106 updates (844) the quoted text in thefirst message based on the text that occurred in the respective message.For example, when a message sent prior to the first message is removedfrom the conversation including the first message, some of the quotedtext previously identified in the first message may be text quoted fromthe deleted message. However, once the deleted message has been deletedany quoted text that was only present in the deleted message and thefirst message is now only present in the conversation in the firstmessage. As such, the copy of the text quoted from the deleted messagethat occurs in the first message is no longer treated as quoted text,and first-message index components for terms in the newly identifiedquoted text of the first message are updated to indicate that the termsin text previously identified as quoted text from the deleted messageare no longer identified as quoted text in first-message indexcomponents (e.g., the high order bits for the mapped locations of theterms are changed from “01” to “00” to indicate that the terms areconsidered to be original text of the message rather than quoted text ofthe message).

Server 106 may receive (846) from a client a search query (e.g., amessage-mode search query) having one or more query terms. A generaldescription of responding to a search query is described above ingreater detail with reference to FIGS. 6B-6C. More specifically, inmethod 800, in response to receiving the search query, Server 106performs (848) a search of the index to identify messages including oneor more of the query terms. However, in some embodiments, indexcomponents corresponding to terms in the quoted text are ignored whileperforming the search. For example, the index components includingmapped locations with addresses having high order bits (e.g., one ormore high order address bits, such as “01,” as illustrated in FIGS.4B-4C) specifying that the terms corresponding to the index componentare in quoted text are ignored while performing the search. Optionally,instead of ignoring the index components while performing the search,after preliminary search results are generated, any index componentsthat are identified as being associated with quoted text are filteredout of the preliminary results so as to produce updated results.

Server 106 may receive (850) from a client a search query (e.g., aconversation-mode search query) having one or more query terms. Ageneral description of responding to a search query is described abovein greater detail with reference to FIGS. 6B-6C. More specifically, inmethod 800, after receiving the search query having one or more terms,Server 106 identifies (852) a conversation having a representativemessage (i.e., the first message from operations 804-826) that matchesthe search query. The original text of the first message includes afirst set of one or more terms that match one or more of the query termsand the quoted text of the first message includes a second set of one ormore terms that match one or more of the query terms. In someimplementations, when preparing instructions for displaying theconversation at a client in response to the search query, Server 106generates display instructions for highlighting (854) terms in the firstset of terms; and foregoing (856) highlighting terms in the second setof terms. In other words, when search terms are highlighted in messagesproduced in response to a search query, Server 106 produces instructionsfor only highlighting terms that occur within original text of the firstmessage, as shown in the exemplary user interface described in greaterdetail below with reference to FIGS. 11D-11E.

In some of these embodiments, Server 106 also identifies (858) a thirdset of one or more terms in a second message of the conversation thatmatch one or more of the query terms (e.g., the terms are identified inoriginal text of the second message). In accordance with theidentification of the third set of one or more terms, Server 106generates display instructions for highlighting (860) terms in the thirdset of terms (e.g., by changing the font of the terms in the third setof terms, or by instructing the client to display an expanded view ofthe second message). In some embodiments only messages that have termsin the original text that match the search query (and, optionally, themost recent message in the conversation) are displayed in expanded mode,using an expanded message display sub-form, and all other messages inthe conversation are displayed in a compressed mode, using a compactmessage display sub-form (e.g., where only a concise message headerincluding a sender, snippet and/or date/time is displayed in thecompressed mode), as shown in the exemplary user interface described ingreater detail below with reference to FIG. 11D-11E. Thus, a respectivemessage that only includes search terms in quoted text would bedisplayed using the compact sub-form, and/or no terms in the respectivemessage would be highlighted.

It should be understood that the particular order in which theoperations in FIGS. 8A-8D have been described are merely exemplary andare not intended to indicate that the described order is the only orderin which the operations could be performed. One of ordinary skill in theart would recognize various ways to reorder the operations describedherein. Additionally, it should be noted that details of other processesdescribed herein with respect to methods 600, 700, 900 and 1000 (e.g.,FIG. 6A-6C, 7A-7G, 9A-9D or 10A-10E respectively) are also applicable inan analogous manner to method 800 described above with respect to FIGS.8A-8D. For example, the conversations, messages and data structures(e.g., databases tables, maps, indexes, etc.) described above withreference to method 800 may have one or more of the characteristics ofthe various conversations, messages and data structures (e.g., databasestables, maps, indexes, etc.) described herein with reference to methods600, 700, 900 and 1000. For brevity, these details are not repeatedhere.

FIGS. 9A-9D include a flowchart representing a method 900 for enablingsearches for conversations with two messages each having a respectivequery term from a search query, according to certain embodiments. Method900 may be governed by instructions that are stored in a non-transitorycomputer readable storage medium and that are executed by one or moreprocessors of one or more servers, such as in conversation server system106 (as illustrated in FIGS. 1 and 3). Each of the operations shown inFIGS. 9A-9D may correspond to instructions stored in a computer memoryor computer readable storage medium. The computer readable storagemedium may include a magnetic or optical disk storage device, solidstate storage devices such as Flash memory, or other non-volatile memorydevice or devices (for example, devices in memory 306 of conversationserver system 106). The computer readable instructions stored on thecomputer readable storage medium may include one or more of: sourcecode, assembly language code, object code, or other instruction formatthat is executed or interpreted by one or more processors. Someoperations in method 900 may be combined and/or the order of someoperations may be changed.

Conversation Server System 106 stores (902) a plurality of index entriesin an index (e.g., Index 142 in FIGS. 1, 3 and/or 4C). A respectiveindex entry (e.g., 430 in FIG. 4C) corresponds to a respective term andhaving a plurality of index components, a respective index component ofthe respective index entry identifying a message that is associated withthe respective term.

Server 106 receives (904) a first message having a first term. In theparticular situation addressed by method 900, after receiving the firstmessage, Server 106 associates (906) the first message with aconversation that includes at least a second message, where the firstterm is not included in the second message and the second messageincludes a second term that is not included in the first message. Itshould be understood that, typically, the second message is a priormessage that was received at the server prior to receiving the firstmessage.

As described in greater detail above with reference to FIG. 6A, after amessage is received, various data structures are updated to reflect thereceived message. In method 900 Server 106 stores (908) in the index, aplurality of index components for a same respective referenced object,including an index component indicative of the first term and an indexcomponent indicative of the second term, where, in some embodiments, areferenced object is an object that has a single identifier by which itis referenced/identified in the index. Some or all of the indexcomponents may include information indicating a location of the termwithin a message database (e.g., by specifying a Message ID and positionwithin the message). However in some embodiments, at least some of theindex components do not correspond to any location of a term within amessage. For example, index components for conversation terms may notcorrespond to terms stored in a data structure for the representativemessage of the conversation, but may instead be added to the index andgiven “mapped” locations within the representative message that do notcorrespond to actual locations of the terms to indicate that the termsoccur in the conversation for which the first message is arepresentative message and do not occur in the first message itself(e.g., the index terms for conversations correspond to mapped locationswithin a Simulated Data Structure 422 in FIG. 4B that is not actuallystored at Server 106). In some embodiments, Server 106 receives a searchquery for a conversation having the first term in one message and thesecond term in another message, and in response to the request theserver generates search results including the conversation that includesthe first message and the second message, as described in greater detailbelow.

In some embodiments, the respective referenced object is (910) arepresentative message of the conversation. For example, a most recentlyreceived message (e.g., the first message) in the conversation may beidentified as the representative message for the conversation. In someother embodiments, the respective referenced object is (912) theconversation. For example, a conversation may be indexed in addition toindexing each of the messages of the conversation, and thus all of theterms that occur in different messages of the conversation would beassociated with the index components associated with the conversation(e.g., individual index components could include a Conversation ID forthe conversation and a value corresponding to a mapped location of theterm in the conversation).

In some embodiments, the index component for the second term includes(914) a value (e.g., a set of one or more high order bits such as “11”in FIGS. 4B-4C) identifying the index component for the second messageas being associated with a message in the conversation other than thefirst message. Alternatively a flag bit or other metadata could be usedto identify a respective index component as being associated with aconversation term (e.g., as opposed to being associated with a messageterm).

In some embodiments, the index component for the second term includes(916) a mapped location that corresponds to an original location of thesecond term in the conversation. For example, when the original locationis a location in a message of the conversation other than the firstmessage, the mapped location is a “virtual location” that is associatedwith the first message. In some implementations, this mapped location ofthe second term is in (918) a predefined range of locations associatedonly with terms in the conversation that are in messages other than thefirst message. For example, in some implementations, the mapped locationcorresponds to a location within a predefined partition of a simulateddata structure (e.g., 422 in FIG. 4B) that is designated forconversation terms.

In some embodiments, the second term is (920) also associated with asecond referenced object and the first term is not associated with thesecond referenced object. In other words, the first message is arepresentative message and thus is augmented with conversations termsthat do not occur in the first message, while the second message is nota representative message for the conversation and thus is not augmentedwith conversation terms that do not occur in the second message. In someembodiments, a message is augmented by adding terms to a data structurerepresentative of the message (e.g., Simulated Data Structure 422 inFIG. 4B). In some embodiments, a message is augmented by modifying indexcomponents identifying the message. For example, when the first term andthe second term are indicative of senders of respective messages, for aconversation with a first message having a first sender and a secondmessage having a second sender, the identifiers of the first sender andthe second sender are both associated with the first message. However,in this example, the identifier of the second sender is also associatedwith a second message (e.g., the message sent by the second sender), butthe first sender is not associated with the second message, because thesecond message is not a representative message for the conversation andthus is not augmented with information about the first message.

In some embodiments, the respective referenced object is (922) the firstmessage and the index includes a plurality of first-message indexcomponents that each include an identifier of the first message, asdescribed in greater detail above with reference to FIGS. 4B-4C. In someembodiments, the address space for the first message is partitioned(924) using a set of one or more high order address bits to specifypartitions, as described in greater detail above with reference to FIGS.4B-4C.

In contrast, in some embodiments, the referenced object is (926) theconversation including the first message and the second message, and theindex includes a plurality of conversation index components that eachinclude an identifier of the conversation, including: one or more indexcomponents indicative of a plurality of first message terms in the firstmessage, including the first term; and one or more index componentsindicative of a plurality of second message terms in the second message,including the second term; and the index components indicative of theplurality of first message terms are distinguished from the indexcomponents indicative of the plurality of second message terms bypartitioning an address space for the conversation, the address spacehaving a respective address for each first message term and each secondmessage term. In these embodiments, the respective address for arespective term in the conversation is indicative of a mapped locationof the respective term within the address space for the conversation.

In some of these embodiments (e.g., where the referenced object is aconversation), the address space for the conversation is partitioned(928) using a set of one or more high order address bits to specifypartitions; a mapped location of a first message term in the addressspace for the conversation is specified by an address having one or morehigh order address bits with a first value; and a mapped location of asecond message term in the address space for the conversation isspecified by an address having one or more high order address bits witha second value different from the first value. In other words, for allfirst message terms (e.g., terms that are in the first message) a mappedlocation is specified by an address including a set of high orderaddress bits having a value that is different from the value of a set ofhigh order address bits of an address that specifies a mapped locationof any of the second message terms (e.g., terms that are in the secondmessage). It should be understood that the data structures required touse the conversation as the referenced object are substantially similarto the data structures described above in FIGS. 4B-4C, where arepresentative message is the referenced object, with a few exceptions,including using Conversation IDs instead of Message IDs to refer toindex components and having partitions in a simulated data structurethat refer to different messages (e.g., one partition for each message)rather than having a partition for “message terms” in original text, apartition for “message terms” in quoted text and a partition for“conversation terms.”

In some embodiments, the first message has a first sender and the firstterm is (930) representative of the first sender and the second messagehas a second sender that is distinct from the first sender and thesecond term is representative of the second sender. In some embodiments,the storing is (932) performed at Server 106 without regard to whetheror not the first message was addressed to the second sender or thesecond message was addressed to the first sender. In other words, theoperations described above would be performed even if the first messagewas not addressed to the second sender, and/or the second message wasnot addressed to the first sender, because the first and second termsindicate a sender of the message not a recipient of the message. In someembodiments, the first term includes (934) an indication that the firstsender is a sender of a message in the conversation and the second termincludes an indication that the second sender is a sender of a messagein the conversation. In other words, the terms differentiate betweensenders and recipients (e.g., there is one term for a message sent by aparticular user (e.g., From:UserA) and a different term for a messagereceived by the particular user (e.g., To:UserA).

In some embodiments, after receiving the first message Server 106receives (936) from a client, a search query for conversations includingat least one message from the first sender and at least one message fromthe second sender. A general description of responding to a search queryis described above in greater detail with reference to FIGS. 6B-6C. Morespecifically, in method 900, in response to the search query, Server 106provides (938) to the client a set of search results includinginformation representing the conversation (e.g., the conversation withwhich the first message and the second message are associated). Thesearch results may include display information enabling the requestingclient to display conversation lists and/or messages that match thesearch query, as shown in the exemplary user interface described ingreater detail below with reference to FIGS. 11A-11F.

Note that because messages (e.g., e-mail messages) typically have asingle sender a search for a message with multiple senders willtypically not produce any results. Many conventional messaging systemsuse individual messages as the primary unit of conversation and indexindividual messages separately, and thus do not have any singlereferenced object that is associated with multiple sender identifiers.Moreover even in messaging systems that group messages intoconversations, messages are typically indexed separately, rather thanbeing indexed as a conversation as a whole. For this reason,conventional messaging systems typically have difficulty identifyingconversations including a message with a first sender and a message witha second sender (e.g., a conversation between user A and user B). Incontrast, because the presently disclosed embodiments include an index(e.g., Index 142 in FIGS. 1, 3 and/or 4C) having a plurality of indexcomponents for a same respective referenced object, including an indexcomponent indicative of a first sender and an index component indicativeof a second sender, a conversation including a message with a firstsender and a message with a second sender can be quickly and efficientlyidentified by identifying any referenced object that includes both theindex component indicative of the first sender and the index componentindicative of the second sender as a matching referenced object.

It should be understood that the particular order in which theoperations in FIGS. 9A-9D have been described are merely exemplary andare not intended to indicate that the described order is the only orderin which the operations could be performed. One of ordinary skill in theart would recognize various ways to reorder the operations describedherein. Additionally, it should be noted that details of other processesdescribed herein with respect to methods 600, 700, 800 and 1000 (e.g.,FIG. 6A-6C, 7A-7G, 8A-8D or 10A-10E respectively) are also applicable inan analogous manner to method 900 described above with respect to FIGS.9A-9D. For example, the conversations, messages and data structures(e.g., databases tables, maps, indexes, etc.) described above withreference to method 900 may have one or more of the characteristics ofthe various conversations, messages and data structures (e.g., databasestables, maps, indexes, etc.) described herein with reference to methods600, 700, 800 and 1000. For brevity, these details are not repeatedhere.

FIGS. 10A-10E include a flowchart representing a method 1000 forperforming both conversation based queries and message based queries,according to certain embodiments. Method 1000 may be governed byinstructions that are stored in a non-transitory computer readablestorage medium and that are executed by one or more processors of one ormore servers, such as in conversation server system 106 (as illustratedin FIGS. 1 and 3). Each of the operations shown in FIGS. 10A-10E maycorrespond to instructions stored in a computer memory or computerreadable storage medium. The computer readable storage medium mayinclude a magnetic or optical disk storage device, solid state storagedevices such as Flash memory, or other non-volatile memory device ordevices (for example, devices in memory 306 of conversation serversystem 106). The computer readable instructions stored on the computerreadable storage medium may include one or more of: source code,assembly language code, object code, or other instruction format that isexecuted or interpreted by one or more processors. Some operations inmethod 1000 may be combined and/or the order of some operations may bechanged.

Conversation Server System 106 stores (1002) a plurality of messagesorganized as a plurality of conversations, each conversation including arespective representative message and, optionally, one or more othermessages. At least one of the conversations includes multiple messages.Additionally, a respective representative message of a conversationincluding multiple messages is associated with one or more message termsand one or more conversation terms. The message terms include terms thatoccur in the respective representative message, and the conversationterms include terms from the conversation that do not occur in therespective representative message. In some implementations, eachrepresentative message includes at least one conversation term, forexample a special representative-message label that identifies themessage as the representative message. In some embodiments, if aconversation has only one message, that message is the respectiverepresentative message for the conversation.

As described in greater detail above with reference to FIG. 6A, asmessages are received various data structures are updated to reflect thereceived messages. In some embodiments of method 1000, Server 106 stores(1004) a plurality of index entries in an index (e.g., 142 in FIG. 4C),a respective index entry (e.g., 430 in FIG. 4C) corresponding to arespective term and having a plurality of index components, a respectiveindex component of the respective index entry identifying a message thatis associated with the respective term. The index includes, for therepresentative message of a respective conversation, a plurality ofconversation index components that each include an identifier of theconversation, as described in greater detail above with reference toFIGS. 4B-4C. In some embodiments, the address space for therepresentative message of the respective conversation is partitioned(1006) using a set of one or more high order address bits to specifypartitions, as described in greater detail above with reference to FIGS.4B-4C.

After storing the plurality of index components, Server 106 receives(1008) a message search query from a client. A general description ofresponding to a message search query is described above in greaterdetail with reference to FIG. 6B. More specifically, in method 1000,Server 106 responds (1010) to the message search query by identifying,(1012) in the plurality of messages (i.e., the messages organized asconversations, and corresponding to index entries in the index), one ormore matching messages that are associated with message terms matchingthe message search query. As noted above, in some embodiments, thestoring (1002) includes storing a plurality of index entries in anindex, a respective index entry corresponding to a respective term andhaving a plurality of index components. A respective index component ofthe respective index entry identifies a message that is associated withthe respective term. Additionally, responding to the message searchquery (1010) includes ignoring (1014) the index components associatedwith conversation terms of the representative messages. In other words,the message search is performed over all of the messages, but some orall of the index components in the index that correspond to conversationterms are ignored for the purposes of the message search. In someembodiments, one or more of the messages that are not representativemessages may be associated with index components that correspond toconversation terms (e.g., index components for a respective message thatonce was a representative message, but is no longer a representativemessage, may still include index components for conversation terms,because those index components have not been removed from the index),and these index components that correspond to conversation terms arealso ignored when executing the message search query. The indexcomponents that correspond to conversation terms may be easilyidentified in some embodiments by the high order bits, flags or othermetadata that is used to distinguish index components for conversationterms from index components for message terms, as described in greaterdetail above with reference to FIG. 4B. After identifying the one ormore matching messages, Server 106 returns (1016), to the requestingclient, message search results including representations of at least asubset of the matching messages for display at the client from which themessage search query was received.

After storing the plurality of index components, in addition toreceiving the message query, Server 106 may also receive (1018) aconversation search query from a client. In some embodiments, themessage search query and the conversation search query are received(1020) from a same client (e.g., a user of the client toggles betweenmessage mode and conversation mode or uses predefined query syntax todifferentiate a message search query from a conversation search query).In some embodiments, the message search query and the conversationsearch query are received (1022) from different clients that areassociated with a same user account for a user associated with theconversations (e.g., a mobile phone displays/searches messages inmessage mode while a desktop or laptop computer displays/searchesmessages in conversation mode).

A general description of responding to a conversation search query isdescribed above in greater detail with reference to FIG. 6B-6C. Morespecifically, in method 1000, Server 106 responds (1024) to theconversation search query by identifying, (1026) in the plurality ofmessages, one or more matching representative messages that areassociated with a combination of message and conversation terms matchingthe conversation search query. The combination of message andconversation terms may include any number of conversation terms and anynumber of message terms. However, uniquely advantageous aspects of thepresently disclosed embodiments are most readily apparent when thecombination of message and conversation terms includes one or moreconversation terms associated with the representative message and zeroor more message terms associated with the representative message,because in those situations the identified conversations are identifiedbased on index components for terms that do not occur in therepresentative messages with which the index components are associated.In other words, the matching conversations that are identified via indexentries for respective representative messages are identified based atleast in part on conversation terms that occur in messages other thanthe respective representative messages for the conversations.

In some embodiments, storing the index components includes (1028)storing a plurality of index entries in an index, a respective indexentry corresponding to a respective term and having a plurality of indexcomponents, a respective index component of the respective index entryidentifying a message that is associated with the respective term, asdescribed in greater detail above with reference to FIGS. 4B-4C. Inthese embodiments, responding to the conversation search query includesignoring index components associated with messages other thanrepresentative messages. In other words, in some embodiments, theconversation search is performed over only the representative messages.For example, only index components that include identifiers (e.g.,Message IDs) for messages identified as representative messages (e.g.,messages having Message IDs that are associated, in the index with arepresentative-message label) are included in the search. In some otherembodiments, the conversation search is performed over all of themessages to generate preliminary search results and the preliminarysearch results are filtered to remove any non-representative messagesfrom the results to produce updated search results. For example, each ofthe representative messages may have a representative-message labelindex component that identifies the message as a representative message,and these index components are stored in an index entry for therepresentative-message label (e.g., the representative-message label istreated as a term in the index).

After identifying the one or more matching representative messages,Server 106 selects (1030) one or more conversations including a matchingrepresentative message as matching conversations. In some embodiments,the conversation search query includes (1032) a conversation-searchcomponent and a message-search component. In some of these embodiments,the search query includes (1034) syntax that identifies at least aportion of the search query as a message-search component. For example,a search query “Message[TermA AND TermB] AND TermC” would search for aconversation including at least one message with both TermA and TermBand at least one message with TermC, whereas a search query “TermA ANDTermB AND TermC” would search for a conversation including somecombination of messages that include the query terms (e.g., TermA, TermBand TermC).

In response to receiving a conversation search query that includes aconversation-search component, Server 106 selects the one or morematching conversations by identifying (1036) a set of conversations thateach include a representative message matching the conversation-searchcomponent. In some embodiments, identifying a set of conversations thateach include a representative message matching the conversation-searchcomponent comprises (1038) identifying a set of conversations that eachinclude a representative message that is associated with (e.g., arerepresented in the index by index components corresponding to) acombination of message terms and conversation terms matching theconversation-search component which may include any combination ofmessage terms and/or conversation terms. However, uniquely advantageousaspects of the presently disclosed embodiments are most readily apparentwhen the combination of message and conversation terms includes at leastone conversation term, as described in greater detail above. If thereceived search query includes two or more conversation-searchcomponents then Server 106 identifies, as the set of conversations, oneor more conversations that each include a combination of theconversation-search components specified by the search operators (e.g.,Boolean operators such as AND, OR, etc.) in search query.

In these embodiments, after identifying the set of conversations thateach include a representative message matching the conversation-searchcomponent, Server 106 identifies, (1040) as the one or more matchingconversations, one or more conversations from the set of conversationsthat each include at least one message that includes message termsmatching the message-search component of the search query (see 1034,FIG. 10C). If the search query includes two or more message-searchcomponents, then the server identifies, as the one or more matchingconversations, from the set of conversations (see 1036), one or moreconversations that each include a combination of the message-searchcomponents specified by one or more search operators (e.g., Booleanoperators such as AND, OR, etc.) in the search query.

After identifying the one or more matching conversations, Server 106returns (1042) conversation search results including representations ofat least a subset of the matching conversations for display at theclient from which the conversation search query was received. In someembodiments, the conversation search results include displayinstructions for displaying the search results at the requesting client.Various user interfaces for displaying conversation lists generated inresponse to search queries are described in greater detail below withreference to FIGS. 11A-11B.

In some situations, the conversation search query includes at least tworequired terms (e.g., “Tahoe” and “dinner”), and Server 106 receives(1044) from a client a request to display a respective conversationselected from the conversation search results, the respectiveconversation including multiple messages. In response to receiving therequest, Server 106 sends (1046) to the requesting client informationenabling the requesting client to display representations of themultiple messages in the respective conversation where representationsof messages that include any of the at least two required terms (e.g.,messages that include either “Tahoe” or “dinner”) are visuallydistinguished from representations of messages that do not include anyof the required terms. In some embodiments the messages that include anyof the at least two required terms are displayed in expanded mode, whilethe messages that do not include any of the required terms are displayedin compressed mode.

In some situations, the conversation search query includes at least tworequired terms (e.g., Tahoe and dinner), and Server 106 receives (1048)from a client, a request to display a respective conversation selectedfrom the conversation search results, the respective conversationincluding multiple messages. In response to receiving the request,Server 106 sends (1050) to the requesting client information enablingthe requesting client to display representations of the multiplemessages in the respective conversation where representations ofmessages having original text that includes any of the at least tworequired terms (e.g., messages that include either “Tahoe” or “dinner”)are visually distinguished from representations of messages that do nothave original text including any of the at least two required terms. Insome embodiments the messages that have original text (e.g., non-quotedtext) including any of the at least two required terms are displayed inexpanded mode, while the messages that do not have original text (e.g.,non-quoted text) including any of the at least two required terms aredisplayed in compressed mode, as shown in the exemplary user interfacedescribed in greater detail below with reference to FIGS. 11D-11F.

It should be understood that the particular order in which theoperations in FIGS. 10A-10E have been described are merely exemplary andare not intended to indicate that the described order is the only orderin which the operations could be performed. One of ordinary skill in theart would recognize various ways to reorder the operations describedherein. Additionally, it should be noted that details of other processesdescribed herein with respect to methods 600, 700, 800 and 900 (e.g.,FIG. 6A-6C, 7A-7G, 8A-8D or 9A-9D respectively) are also applicable inan analogous manner to method 1000 described above with respect to FIGS.10A-10E. For example, the conversations, messages and data structures(e.g., databases tables, maps, indexes, etc.) described above withreference to method 1000 may have one or more of the characteristics ofthe various conversations, messages and data structures (e.g., databasestables, maps, indexes, etc.) described herein with reference to methods600, 700, 800 and 900. For brevity, these details are not repeated here.

Exemplary Conversation User Interfaces

As discussed above, in some embodiments, after performing a search queryto identify matching conversations and/or messages, Server 106 generatesdisplay information for displaying a list of conversations or messagesat Client 102. FIGS. 11A-11F illustrate exemplary user interfaces fordisplaying conversation lists (FIGS. 11A-11B) and conversation views(FIGS. 11C-11F) formatted in accordance with display informationgenerated by Server 106 in response to search queries received from aclient in conversation view mode.

FIG. 11A illustrates an exemplary user interface including a list 1110of representations of conversations in the “Inbox” category (e.g.,conversations with which a system-defined “Inbox” label is associated).This user interface is typically generated in response to a userrequesting to view the user's inbox (e.g., by clicking on an “Inbox”icon or link in a messaging user interface), and Server 106 executing apredefined search query to identify all conversations associated with asystem-defined “Inbox” label. Similar searches are performed to generateother views for the messaging system (e.g., a search for allconversations with a “Starred” label is performed to generate a list ofconversations including a “Starred” label, etc.). At the top left cornerof the screenshot, there is a “Compose Mail” link 1102. The user clickson this link to start writing a new message. Next to the link 1102,there are a textbox 1104 and a “Search” button 1106. After the userenters one or more query terms into the textbox 1104 and then clicks onthe “Search” button 1106, Client 102 sends a search query includingquery terms from the text box to Server 106. In response to the searchquery, Server 106 generates display information for displaying a set ofconversations that match the submitted search query. In someembodiments, matches can occur by the presence of one or more synonymsof a respective query term. In some embodiments, matches can occur basedon the root of the respective query term. For example, a search for“book” could be matched by the words “book”, “books”, and “booking”.

Next to “Search” button 1106 are two pull-down lists: the “more actions”list 1108 and the “add label” list 1109 which enable the user to requestthat user-defined and/or system-defined labels be added to selectedmessages and/or conversations. In some embodiments user-defined labelsare added to messages and/or conversations in response to an explicitrequests from a user to add a label, while system-defined labels (e.g.,“Inbox,” “Unread,” “Spam,” “Trash,” “Active Message”) are added to orremoved from messages and/or conversations in response to requests fromthe user to perform functions associated with the system-defined labels(e.g., “Remove from Inbox” removes the “Inbox” label, “Mark as Unread”adds the “Unread” label, “Report Spam” adds the “Spam” label and removesthe “Inbox” and “Active Message” labels, “Move to Trash” or “DeleteMessage” removes the “Inbox” label and adds a “Trash” label).

Right below the “Compose Mail” link 1102, there are a series of groupboxes enabling a user to instruct the Client 102 to send predefinedqueries to Server 106. For instance, the group box 1112 displayssystem-defined categories, including “Inbox”, “Starred”, “Sent Mail”,“Drafts”, “All Mail”, “Spam” and “Trash”, etc. In other embodiments, theset of system-defined categories may be different, including a subset ofthese categories and/or additional categories. In some embodiments, the“Starred” category includes conversations in which the user plans to beactively involved, e.g., by sending messages to other participants,which is similar to a “To Do” list. Thus, in one embodiment, a messagemay be flagged with a star, so that a user can, for example, search forstarred messages. In one embodiment, the “All Mail” category includesall conversations associated with the user that are not in the “Spam” or“Trash” categories. Note that since the exemplary screenshot in FIG. 11Aincludes only conversations belonging to the “Inbox” category, thecorresponding link in the group box 1112 has been highlighted. If manypeople have contributed messages to a conversation, the sender list maybecome too long to fit into the limited space in a browser window. Thisis especially true if one or more of the senders in the sender list areidentified by their email address. If so, the Server 106 prioritizes thesenders in the list of senders based on various information to identifya subset of the sender list and sends Client 102 display informationthat enables Client 102 to display the subset of the sender list to theuser.

The central area of the exemplary screenshot in FIG. 11A is a formcomprising a list 1110 of representations of conversations (e.g.,“concise conversation headers”), each representation of a conversationoccupying one row in the form. Each row further includes a checkbox1122, a sender list 1124, a recipient status indicator 1126, aconversation topic and snippets 1128 and a date/time value 1130. Inother embodiments, the set of fields for each conversation row may bedifferent, including a subset of these fields and/or additional fields.In some embodiments, all rows have a uniform height when a list ofconversations is displayed. In other embodiments, heights may bevariable to accommodate various snippet lengths. In some embodiments,the sender list comprises a plurality of sender identifiers, eachidentifier corresponding to a sender who has authored at least one ofthe messages. A sender may be identified by his first name, last name,full name, email address, picture or a unique icon or a combinationthereof. The sender list for a conversation may contain all or a subsetof the senders within the conversation. In some embodiments, the list ofsenders is formatted so as to visually distinguish those senders whohave sent a message (in the conversation) that is currently labeled as“Unread.” The concise conversation header may also includes a count ofthe number of messages included in each conversation in the list ofconversations, a subject and/or snippet from the conversation, and adate/time of the conversation.

The display information used by Client 102 to display the list ofrepresentations of conversations includes date/time values 1130 for theconversations as identified by Server 106. These date/time values oftendictate the display order of a list of representations of conversationsat Client 102. Typically, each conversation in a list of conversations,is assigned a date/time equal to the date/time of the most recentmessage of the conversation, and the conversations in a list ofconversations are ordered (e.g., in reverse chronological order) inaccordance with these assigned date/time values. However, one ofordinary skill in the art will recognize that there are various otherways to order and present the conversations in a list of conversations.For example, in some implementations, each conversation in a list ofconversations, may be assigned a date/time equal to the date/time of themost recent message that matches the search criteria used to generatethe list of conversations. For instance, if a user-specified searchquery is used (e.g., “Lake Tahoe”), then for each matching conversationin the list of conversations, the assigned date/time is the date/time ofthe most recent message matching the user-specified search query (or,optionally a term in the query). In some embodiments, the conversationsin the list of conversations are listed in reverse chronological orderwith respect to their assigned date/time values (i.e., with the mostrecent conversations being listed first). As used herein, “date/time”value refers to whatever date value and/or time value is associated witha particular message or conversation. Dates and/or times may beassociated with messages based on the date and/or time of the message'screation, transmission, receipt or other event.

FIG. 11B illustrates an exemplary user interface including a list ofrepresentations of conversations that correspond to conversationsidentified at Server 106 in response to a search query “Tahoe ANDdinner.” This user interface is typically generated in response to auser submitting a search query (e.g., by entering a search query “TahoeAND dinner” in text box 1104 and selecting “Search” button 1106). Thesearch query is executed by Server 106 to identify matchingconversations as discussed in greater detail above, and Server 106 sendsdisplay information to Client 102 enabling Client 102 to display thesearch results. The search results include a list of representations ofconversations 1120 in FIG. 11B. Each representation of a conversationincludes the same elements as described above in the “Inbox” view,except that in FIG. 11B, the snippet/subject of each of the conciseconversation headers includes text associated with the query terms(e.g., “Tahoe” and/or “dinner”). In this example, the snippets includerelevant content of the conversations, the first and secondconversations are about a ski trip to Lake Tahoe, while the thirdconversation is about camping sites at the Tahoe National Forest. Thus,in this example the user would be able to use the information in thesnippets to decide which particular conversation, if any, to open forviewing.

FIGS. 11C-11F illustrate messages displayed in a conversation view. Insome embodiments, messages in a conversation view can be displayed inone of a plurality of different sub-forms (also sometimes called messagedisplay sub-forms). In some embodiments a compacted sub-form for amessage contains only a concise message header. For example, thecompacted sub-form may include only a sender list, a snippet thatincludes only a predefined portion of the message body such as the firstfew lines of the message body, and optionally a date/time indicator. Incontrast, an expanded sub-form includes more information than thecompacted sub-form. In particular, the expanded sub-form may include, inaddition to the sender list and the date/time indicator, a completemessage body, a “More options” link, which causes the detailed messageheader to be display when selected, and a list of reply options (e.g.,Reply, Reply All, Forward, etc.). In some embodiments, if the messageassociated with the sub-form has not been viewed or marked as read bythe user, the expanded sub-form for the message is displayed. Incontrast, if a respective message has been viewed or marked as read, thecompacted sub-form is displayed. This provides a visual effect that allthe read messages in the conversation are piled together (e.g., onlycompacted sub-forms are displayed), while unread messages are displayedin expanded sub-forms so that they can be easily read.

FIG. 11C illustrates an exemplary user interface including aconversation view of a conversation including a plurality of messagesthat matches the search query (e.g., “Tahoe AND dinner”) displayed inaccordance with display information received from Server 106. The topand left portions of the screenshot are identical to that of FIG. 11B.But the list of conversations 1120 has been replaced by a conversationview 1130 that includes a plurality of representations of messagesassociated with a selected conversation from the list of conversations1120 in FIG. 11B. On top of the list of messages are the conversation'stopic “Topic 2” 1132, all the user-defined labels 1134 associated withthe conversation and a “Compact All Messages” button 1136 for compactingthe expanded messages (e.g., messages displayed with expandedsub-forms). Since the last message was sent by S4, one of the replyoptions is “Reply to S4”, which alerts the user that a reply will beaddressed to S4.

In FIG. 11C, the user has selected to view messages for the conversationTopic 2, which includes four messages. The first and third messagesinclude only original text and the second and fourth messages includeboth original text and quoted text (where each line of quoted text isindicated by a “>” before the line of quoted text). In the embodimentillustrated in FIG. 11C, Server 106 has identified query terms in eachof the messages and provided display information for highlighting thequery terms that occur in either original text or quoted text. Thus, allof the messages are displayed in expanded mode, because each of themessages includes either the term “Tahoe” or the term “dinner.” The usercan subsequently collapse the expanded sub-form for a respective messageto display a compacted sub-form for the respective message by clickingon a top edge of the expanded sub-form. Each of the expanded sub-formsalso includes a set of reply options at the bottom of the sub-form,(e.g., “Reply”, “Reply to All” and “Forward”).

FIG. 11D is a schematic screenshot of the conversation shown in FIG. 11Cin embodiments where terms in original text are highlighted but terms inquoted text are not highlighted. As shown in FIG. 11C, the second andfourth messages in the conversation do not include the term “Tahoe” orthe term “dinner” in original text (“dinner” is included only in quotedtext). Thus, in the conversation view 1140 in FIG. 11D, the secondmessage is displayed using a compact sub-form, while the text in thefourth message that matches the search terms is not highlighted (e.g.,the term “dinner” is not highlighted in the fourth message). In someembodiments, the user can subsequently expand the compacted sub-form ofany message by clicking on it. Note that the “Compact All Messages”button is replaced with an “Expand All Messages” button 1142 as at leastsome of the messages are now represented by compacted sub-forms.Selecting the “Expand All Messages” button would display the expandedsub-form for all of the messages in the displayed conversation.

FIG. 11E is a schematic screenshot of the conversation shown in FIG. 11Cin embodiments where terms in original text are highlighted but terms inquoted text are not highlighted and quoted text is elided. As shown inFIG. 11C, the second and fourth messages in the conversation do notinclude the term “Tahoe” or the term “dinner” in original text (“dinner”is included only in quoted text). Thus, in the conversation view 1150 inFIG. 11E, the second message is displayed using a compact sub-form, andthe quoted text in the fourth message has been replaced with a “showquoted text” affordance 1152, which, when selected by a user causes thequoted text to be displayed. However, even if the quoted text were to bedisplayed, the term “dinner” would not be highlighted in the quoted textof the fourth message. Thus, in the embodiment illustrated in FIG. 11E,not only are matching terms in the quoted text not highlighted, but thequoted text itself is elided from the representations of the messagesunless the user affirmatively requests that the quoted text be displayed(be selecting the “show quoted text” affordance 1152). It should benoted that the quoted text may accumulate over the course ofconversation due to automated quoting processes of messaging systems.However when messages are grouped together as conversations, theoriginal text from which the quoted text originated is typically readilyavailable in the conversation. Thus, the quoted text merely addsunneeded bulk to the conversation as a whole and makes it harder todiscern the structure of the conversation. Thus eliding quoted text asshown in FIG. 11E removes unneeded text from messages in theconversation thereby proving a more intuitive and user-friendly userinterface.

FIG. 11F illustrates an exemplary user interface including aconversation view of a conversation including a plurality of messagesdisplayed in accordance with display information received from Server106. The conversation has been retrieved in response to a search query(e.g., “From:S3 AND From:S4”) for conversations that include at leastone message with a first sender (e.g., S3) and at least one message witha second sender (e.g., S4). For example, a list of conversations similarto the list of conversations shown in FIG. 11B may have been generatedby Server 106 and displayed by Client 102 to the user, who selected theconversation displayed in FIG. 11F from the list of conversations. Thetop and left portions of the screenshot are identical to that of FIG.11C. However, the conversation view 1130 from FIG. 11C has been replacedby a conversation view 1160 and different messages and different termsare highlighted because a different set of search terms was present inthe search query (e.g., From:S3 AND From:S4” instead of “Tahoe ANDdinner”). For example the identifier for sender S3 in the first messageis highlighted, because S3 is the sender of the first message, and theidentifier for sender S4 in the fourth message is highlighted, becauseS4 is the sender of the fourth message. Thus, FIG. 11F illustrates anembodiment where a conversation is returned in response to a searchquery for conversations including at least one message from a firstsender and at least another message from a second sender.

FIGS. 12A-12B illustrate exemplary user interfaces for displayingmessage lists (FIG. 12A) and message views (FIG. 12B) formatted inaccordance with display information generated by Server 106 in responseto search queries received from a client in message view mode.

FIG. 12A illustrates an exemplary user interface including a list ofrepresentations of messages that correspond to messages identified atServer 106 in response to a search query “Tahoe OR dinner.” Note thatthe query “Tahoe OR dinner” is used in this example, because the query“Tahoe AND dinner” would not return any of the messages for Topic 2, asnone of the messages in Topic 2 include both the term “Tahoe” and theterm “dinner.” FIG. 12A includes many elements that are analogous to theelements in FIG. 11A. At the top left corner of the screenshot, there isa “Compose Mail” link 1202. The user clicks on this link to startwriting a new message. Next to the link 1202, there are a textbox 1204and a “Search” button 1206. Right below the “Compose Mail” link 1202,there are a series of group boxes enabling a user to instruct the Client102 to send predefined queries to Server 106. For instance, the groupbox 1212 displays system-defined categories, including “Inbox”,“Starred”, “Sent Mail”, “Drafts”, “All Mail”, “Spam” and “Trash”, etc.Similarly the “Labels,” “Searches” and “Recent Views” group boxes inFIG. 12A have analogous functions to those of FIG. 11A.

After the user submits one or more query terms through the textbox 1204and then clicks on the “Search” button 1206, Client 102 sends a searchquery including query terms from the text box. The search query (e.g.,“Tahoe OR dinner”) is executed by Server 106 to identify matchingmessages, as described in greater detail above. In some embodiments,matches can occur by the presence of one or more synonyms of arespective query term. In some embodiments, matches can occur based onthe root of the respective query term. For example, a search for “book”could be matched by the words “book”, “books”, and “booking”. Next to“Search” button 1206 are two pull-down lists: the “more actions” list1208 and the “add label” list 1209 which enable the user to request thatuser-defined and/or system-defined labels be added to selected messages.

After identifying search results, Server 106 sends display informationto Client 102 for displaying the search results as a message list. Themessage list 1220 includes representations of messages matching thesearch query. Each representation of a message occupies one row in theform. Each row further includes a checkbox 1222, a message addressinformation list 1224 (e.g., a list of the senders and recipients of themessage), a message subject 1228 and a date/time value 1230. Note that,in the message view mode, conversations are divided into individualmessages, each representation of a message occupying one line in themenu list. Thus, the conversation on “Topic 2” that was represented by asingle row in FIG. 11B is represented as four rows in the message basedview of the search results in FIG. 12A. Additionally it should be notedthat messages that do not match the search query are not displayed eventhey are associated with conversations including messages that do matchthe search query. Furthermore, some conversations that, as a whole,match the search query may not be displayed if none of the messagesassociated with the conversation individually matches the search query.For example, if the search query was “Tahoe AND dinner,” none of theTopic 2 messages would be displayed, because none of the Topic 2messages includes both the terms “Tahoe” and “dinner.”

FIG. 12B illustrates an exemplary user interface including aconversation view of a message that matches the search query (e.g.,“Tahoe OR dinner”) displayed in accordance with display informationreceived from Server 106. The top and left portions of the screenshotare identical to that of FIG. 12B. However, the list of messages 1120has been replaced by a message view 1140 that includes a representationof a message selected from the list of messages shown in FIG. 12B.Additionally, the message's subject line 1242 “RE: RE: Topic 2”, anyuser-defined labels 1244 associated with the message are displayed inthe message view. Since the message was sent by S4, one of the replyoptions is “Reply to S4”, which alerts the user that a reply will beaddressed to S4. In the embodiment shown in FIG. 12B, terms in themessage that match query terms (e.g., “dinner”) from the search queryare highlighted in the message. However, in some embodiments terms inquoted text of the message are not highlighted even if they match queryterms in the search query. Additionally, in some embodiments, quotedtext is elided from the message. However, when messages are notdisplayed together with other messages in the same conversation, it maybe advantageous to display quoted text and highlight matching searchterms in the quoted text so as to provide helpful context to the user(e.g., showing matching text from earlier messages that were quoted bythe displayed message).

The foregoing description, for purpose of explanation, has beendescribed with reference to specific embodiments. However, theillustrative discussions above are not intended to be exhaustive or tolimit the invention to the precise forms disclosed. Many modificationsand variations are possible in view of the above teachings. Theembodiments were chosen and described in order to best explain theprinciples of the invention and its practical applications, to therebyenable others skilled in the art to best utilize the invention andvarious embodiments with various modifications as are suited to theparticular use contemplated.

What is claimed is:
 1. A method comprising: at a computer having one ormore processors and memory storing one or more programs for execution bythe one or more processors so as to perform the method: obtaining aplurality of index entries in an index, a respective index entrycorresponding to a respective term in one or more messages, and having aplurality of index components, a respective index component of therespective index entry identifying a message that is associated with therespective term; responsive to receiving a first message; updating theindex by: associating the first message with a conversation having oneor more other messages; identifying text in the first message as quotedtext based on text that occurs in one or more of the other messages ofthe conversation; and updating, in the index, a plurality offirst-message index components that each includes an identifier of thefirst message, including;  one or more original text index componentsthat correspond to terms that occur in original text of the firstmessage; and  one or more quoted text index components that correspondto terms in the first message that occur in the quoted text of the firstmessage; wherein the one or more quoted text index components includeinformation indicating that the corresponding terms are terms in thequoted text of the first message; and wherein, in the index, the one ormore index components indicative of the terms that occur in originaltext of the first message are distinguished from the one or more indexcomponents indicative of terms in the first message that occur only inthe quoted text of the first message by partitioning an address spacefor the first message, the address space having a respective address foreach term that occurs in original text of the first message and eachterm that occurs in quoted text of the first message, wherein therespective address for a respective term in the quoted text of the firstmessage is indicative of a mapped location of the respective term withinthe address space for the first message.
 2. The method of claim 1,further comprising: responsive to a search query having one or morequery terms; identifying messages including at least one query term inthe one or more query terms by searching the index, wherein thesearching distinguishes between (A) matches of a query term withoriginal text index components and (B) matches of a query term withquoted text index components.
 3. The method of claim 1, wherein arespective index component for a particular term in the quoted textincludes a mapped location that corresponds to an original location ofthe particular term in the quoted text.
 4. The method of claim 3,wherein the mapped location of the particular term is in a predefinedrange of locations associated only with terms in the quoted text.
 5. Themethod of claim 1, wherein identifying quoted text in the first messageincludes: comparing text in the first message to text from a priormessage in the conversation; identifying matching text in the priormessage; and identifying the matching text as quoted text.
 6. The methodof claim 1, including, after identifying quoted text in the firstmessage: receiving a second message that is a prior message in theconversation; associating the second message with the conversation; andupdating the quoted text in the first message based on the text thatoccurs in the second message.
 7. The method of claim 1, including:deleting a respective message that is a prior message in theconversation; and updating the quoted text in the first message based onthe text that occurred in the respective message.
 8. The method of claim1, including: receiving a request for the first message; and in responseto the request, formatting for display a portion of the first messagethat excludes at least a portion of the quoted text.
 9. The method ofclaim 1, including: receiving a request for the conversation includingthe first message; and in response to the request, formatting fordisplay a portion of the first message that excludes the quoted text andat least a portion of a second message in the conversation that includesthe quoted text.
 10. The method of claim 1, including: receiving asearch query having one or more query terms; and performing a search ofthe index to identify messages including one or more of the query terms,wherein index components corresponding to terms in the quoted text areignored while performing the search.
 11. The method of claim 1,including: receiving a search query having one or more query terms;identifying the conversation including the first message as matching thesearch query, wherein the original text of the first message includes afirst set of one or more terms that match one or more of the query termsand the quoted text of the first message includes a second set of one ormore terms that match one or more of the query terms; highlighting termsin the first set of terms; and foregoing highlighting terms in thesecond set of terms.
 12. The method of claim 11, including: identifyinga third set of one or more terms in a second message of the conversationthat match one or more of the query terms; and highlighting terms in thethird set of terms.
 13. The method of claim 1, wherein: the addressspace for the first message is partitioned using a set of one or morehigh order address bits to specify partitions; a mapped location of aterm that occurs in original text of the first message in the addressspace for the first message is specified by an address having one ormore high order address bits with a first value; and a mapped locationof a term that occurs in quoted text of the first message in the addressspace for the first message is specified by an address having one ormore high order address bits with a second value different from thefirst value.
 14. A conversation computer system, comprising: one or moreprocessors; memory; and one or more programs, wherein the one or moreprograms are stored in the memory and configured to be executed by theone or more processors, the one or more programs including instructionsfor: obtaining a plurality of index entries in an index, a respectiveindex entry corresponding to a respective term in one or more messages,and having a plurality of index components, a respective index componentof the respective index entry identifying a message that is associatedwith the respective term; responsive to receiving a first message;updating the index by: associating the first message with a conversationhaving one or more other messages; identifying text in the first messageas quoted text based on text that occurs in one or more of the othermessages of the conversation; and updating, in the index, a plurality offirst-message index components that each includes an identifier of thefirst message, including;  one or more original text index componentsthat correspond to terms that occur in original text of the firstmessage; and  one or more quoted text index components that correspondto terms in the first message that occur in the quoted text of the firstmessage; wherein the one or more quoted text index components includeinformation indicating that the corresponding terms are terms in thequoted text of the first message; and wherein, in the index, the one ormore index components indicative of the terms that occur in originaltext of the first message are distinguished from the one or more indexcomponents indicative of terms in the first message that occur only inthe quoted text of the first message by partitioning an address spacefor the first message, the address space having a respective address foreach term that occurs in original text of the first message and eachterm that occurs in quoted text of the first message, wherein therespective address for a respective term in the quoted text of the firstmessage is indicative of a mapped location of the respective term withinthe address space for the first message.
 15. The system of claim 14,wherein the one or more programs further comprising instructions for:responsive to a search query having one or more query terms; identifyingmessages including at least one query term in the one or more queryterms by searching the index, wherein the searching distinguishesbetween (A) matches of a query term with original text index componentsand (B) matches of a query term with quoted text index components. 16.The system of claim 14, including instructions for: receiving a searchquery having one or more query terms; and performing a search of theindex to identify messages including one or more of the query terms,wherein index components corresponding to terms in the quoted text areignored while performing the search.
 17. The system of claim 14,including instructions for: receiving a search query having one or morequery terms; identifying the conversation including the first message asmatching the search query, wherein the original text of the firstmessage includes a first set of one or more terms that match one or moreof the query terms and the quoted text of the first message includes asecond set of one or more terms that match one or more of the queryterms; highlighting terms in the first set of terms; and foregoinghighlighting terms in the second set of terms.
 18. A non-transitorycomputer readable storage medium storing one or more programs, the oneor more programs comprising instructions which, when executed by aconversation computer system with one or more processors, cause theconversation computer system to: obtain a plurality of index entries inan index, a respective index entry corresponding to a respective term inone or more messages, and having a plurality of index components, arespective index component of the respective index entry identifying amessage that is associated with the respective term; responsive toreceiving a first message; update the index by: associate the firstmessage with a conversation having one or more other messages; identifytext in the first message as quoted text based on text that occurs inone or more of the other messages of the conversation; and update, inthe index, a plurality of first-message index components that eachincludes an identifier of the first message, including; one or moreoriginal text index components that correspond to terms that occur inoriginal text of the first message; and one or more quoted text indexcomponents that correspond to terms in the first message that occur inthe quoted text of the first message; wherein the one or more quotedtext index components include information indicating that thecorresponding terms are terms in the quoted text of the first message;and wherein, in the index, the one or more index components indicativeof the terms that occur in original text of the first message aredistinguished from the one or more index components indicative of termsin the first message that occur only in the quoted text of the firstmessage by partitioning an address space for the first message, theaddress space having a respective address for each term that occurs inoriginal text of the first message and each term that occurs in quotedtext of the first message, wherein the respective address for arespective term in the quoted text of the first message is indicative ofa mapped location of the respective term within the address space forthe first message.
 19. The computer readable storage medium of claim 18,wherein the one or more programs further comprising instructions to:responsive to a search query having one or more query terms; identifymessages including at least one query term in the one or more queryterms by searching the index, wherein the searching distinguishesbetween (A) matches of a query term with original text index componentsand (B) matches of a query term with quoted text index components. 20.The computer readable storage medium of claim 18, including instructionswhich, when executed by a conversation computer system with one or moreprocessors, cause the conversation computer system to: receive a searchquery having one or more query terms; and perform a search of the indexto identify messages including one or more of the query terms, whereinindex components corresponding to terms in the quoted text are ignoredwhile performing the search.
 21. The computer readable storage medium ofclaim 18, including instructions which, when executed by a conversationcomputer system with one or more processors, cause the conversationcomputer system to: receive a search query having one or more queryterms; identify the conversation including the first message as matchingthe search query, wherein the original text of the first messageincludes a first set of one or more terms that match one or more of thequery terms and the quoted text of the first message includes a secondset of one or more terms that match one or more of the query terms;highlight terms in the first set of terms; and forego highlighting termsin the second set of terms.
 22. The computer readable storage medium ofclaim 18, wherein the address space for the first message is partitionedusing a set of one or more high order address bits to specifypartitions; a mapped location of a term that occurs in original text ofthe first message in the address space for the first message isspecified by an address having one or more high order address bits witha first value; and a mapped location of a term that occurs in quotedtext of the first message in the address space for the first message isspecified by an address having one or more high order address bits witha second value different from the first value.
 23. The computer readablestorage medium of claim 18, wherein a respective index component for aparticular term in the quoted text includes a mapped location thatcorresponds to an original location of the particular term in the quotedtext, and wherein the mapped location of the particular term is in apredefined range of locations associated only with terms in the quotedtext.
 24. The system of claim 14, wherein the address space for thefirst message is partitioned using a set of one or more high orderaddress bits to specify partitions; a mapped location of a term thatoccurs in original text of the first message in the address space forthe first message is specified by an address having one or more highorder address bits with a first value; and a mapped location of a termthat occurs in quoted text of the first message in the address space forthe first message is specified by an address having one or more highorder address bits with a second value different from the first value.25. The system of claim 14, wherein a respective index component for aparticular term in the quoted text includes a mapped location thatcorresponds to an original location of the particular term in the quotedtext, and wherein the mapped location of the particular term is in apredefined range of locations associated only with terms in the quotedtext.